:root {
  --ink: #141414;
  --muted: #615c55;
  --paper: #f8f2e8;
  --panel: #fffaf2;
  --line: #d8cfc0;
  --sage: #4f574a;
  --coral: #141414;
  --sky: #6f7777;
  --aubergine: #141414;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(248, 242, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.socials,
.filter-bar,
.next-project {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 45px;
  width: auto;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
}

nav {
  gap: clamp(12px, 2.6vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta,
.button,
.filter,
.language-toggle {
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.nav-cta,
.language-toggle {
  padding: 9px 15px;
}

.language-toggle {
  min-width: 48px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.hero,
.page-hero,
.project-hero {
  position: relative;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 75px);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: min(58vw, 760px);
  z-index: 0;
  pointer-events: none;
  width: 20px;
  height: 20px;
  background: url("assets/portfolio25-preview.png") center / 120px 90px;
  border-radius: 50%;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero.compact {
  max-width: 1180px;
  padding-bottom: clamp(28px, 4vw, 54px);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: end;
}

.hero-copy,
.page-hero,
.project-hero > div:first-child {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8vw, 8.3rem);
}

.page-hero h1,
.project-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 4.8vw, 5.3rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.8vw, 5.5rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.intro {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 850;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.button.light {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.text-link {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  grid-template-rows: minmax(190px, 1fr) minmax(190px, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  min-height: 560px;
}

.feature-card,
.project-card,
.service-list article,
.portrait-panel,
.contact-form,
.contact-card,
.project-meta,
.timeline article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 220px;
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card img,
.project-cover img {
  height: 100%;
  object-fit: cover;
}

.feature-card div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #fff;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.feature-card span,
.project-content p,
.service-list span,
.timeline span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card strong {
  text-align: right;
}

.section {
  padding: clamp(58px, 9vw, 120px) clamp(18px, 4vw, 56px);
}

.intro-band,
.split,
.project-story,
.contact-layout,
.about-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro-band,
.split {
  position: relative;
  overflow: hidden;
  background: #efe7dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band::after,
.split::after,
.contact-strip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(24vw, 240px);
  pointer-events: none;
  background: url("assets/black-white-texture.png") center / cover;
  mix-blend-mode: multiply;
  opacity: 0.16;
}

.intro-band > *,
.split > *,
.contact-strip > * {
  position: relative;
  z-index: 1;
}

.text-stack {
  color: var(--muted);
  font-size: 1.08rem;
}

.text-stack p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: var(--paper);
  background: var(--aubergine);
  border-color: var(--aubergine);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: block;
  transition: transform 220ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  aspect-ratio: 4 / 3.4;
  background: #f0e7da;
  object-fit: cover;
}

.project-content {
  padding: 18px;
}

.project-content h3 {
  margin-bottom: 7px;
  font-size: 1.24rem;
}

.project-content span,
.service-list p,
.about-copy p,
footer,
.contact-card p,
.timeline p,
.project-meta,
.form-note {
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article,
.timeline article {
  padding: clamp(20px, 3vw, 32px);
  box-shadow: none;
}

.service-list h3 {
  margin-top: 12px;
  font-size: 1.45rem;
}

.service-list p,
.timeline p {
  margin-bottom: 0;
}

.about-page {
  align-items: center;
}

.about-page h1 {
  font-size: clamp(2.8rem, 6.2vw, 6.8rem);
}

.portrait-panel img {
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.about-copy p {
  max-width: 650px;
  font-size: 1.08rem;
}

.timeline-section h2 {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline h3 {
  margin-top: 12px;
  font-size: 1.28rem;
}

.project-meta {
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: none;
}

.project-meta dt {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 4px 0 0;
}

.project-cover {
  height: min(72vw, 760px);
  margin: 0 clamp(18px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #efe7dc;
}

.project-cover img {
  object-fit: contain;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 18px;
}

.gallery-grid img {
  aspect-ratio: 4 / 3.2;
  background: #efe7dc;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.next-project {
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 56px) clamp(58px, 9vw, 110px);
}

.contact-strip {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 130px) clamp(18px, 4vw, 56px);
  color: var(--ink);
  text-align: center;
  background: #efe7dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip h2 {
  max-width: 980px;
  margin: 0 auto 28px;
}

.contact-heading {
  padding-bottom: 0;
}

.contact-layout {
  align-items: stretch;
}

.contact-form,
.contact-card {
  padding: clamp(22px, 4vw, 42px);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-group.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.12);
}

.budget-fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.budget-fieldset p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.budget-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.budget-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.budget-options input {
  width: auto;
  margin: 0;
}

.form-submit {
  justify-self: start;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.contact-card {
  align-self: start;
  background: #141414;
}

.contact-card h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  overflow-wrap: anywhere;
}

.contact-socials {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  color: #fff;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero,
  .intro-band,
  .split,
  .about-page,
  .contact-layout,
  .project-hero,
  .project-story {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    min-height: 500px;
  }

  .project-grid,
  .featured-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 30px;
  }

  .hero::before,
  .page-hero::before {
    left: 68vw;
  }

  h1,
  .about-page h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .page-hero h1,
  .project-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.7rem);
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: auto;
  }

  .feature-card,
  .feature-card.large {
    min-height: 310px;
  }

  .feature-card.large {
    grid-row: auto;
  }

  .section-heading {
    display: block;
  }

  .project-grid,
  .featured-grid,
  .timeline,
  .gallery-grid,
  .field-group.two-columns,
  .budget-options {
    grid-template-columns: 1fr;
  }

  .project-cover {
    height: 78vw;
  }

  footer,
  .next-project {
    align-items: flex-start;
    flex-direction: column;
  }
}
