:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --ink: #10100f;
  --ink-soft: #33312e;
  --muted: #6c6761;
  --line: #e4dfd8;
  --line-dark: rgba(255, 255, 255, 0.18);
  --gold: #a06f2f;
  --gold-dark: #7b511e;
  --dark: #11110f;
  --dark-soft: #1b1a17;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(24, 22, 18, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 78px;
  padding: 18px clamp(20px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(22, 20, 18, 0.06);
}

.brand {
  display: grid;
  gap: 0;
  width: max-content;
  color: var(--ink);
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-dark);
}

.brand small {
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: 0.83rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.header-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-toggle {
  min-width: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.header-contact {
  padding: 0 18px;
  color: #fff;
  background: var(--dark);
  border: 1px solid var(--dark);
}

.language-toggle:hover,
.header-contact:hover,
.button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-pad {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 4vw, 58px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  max-width: 1440px;
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding-top: clamp(28px, 3.6vw, 50px);
  padding-bottom: clamp(28px, 3.6vw, 50px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 770px;
}

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

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

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(3.35rem, 5.1vw, 4.95rem);
  line-height: 0.97;
}

h2 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 5.1rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero-role {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.12vw, 1rem);
  font-weight: 750;
}

.hero-founder-line {
  max-width: 660px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: clamp(0.93rem, 1.08vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-founder-line a {
  padding: 0;
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(160, 111, 47, 0.34);
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-founder-line a:hover,
.hero-founder-line a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

.recent-project-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  max-width: 560px;
  padding: 10px 0 0;
  margin-top: 14px;
  color: var(--ink);
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.recent-project-card:hover,
.recent-project-card:focus-visible {
  border-color: rgba(160, 111, 47, 0.38);
  box-shadow: none;
  transform: translateY(-2px);
}

.recent-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.recent-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent-project-card strong,
.recent-project-card span span {
  display: block;
}

.recent-project-card strong {
  margin-bottom: 0;
  color: var(--gold-dark);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recent-project-card span span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button {
  min-width: 132px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--dark);
}

.button-dark {
  color: #fff;
  background: var(--dark);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--gold);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  padding: 14px 16px 13px 0;
}

.hero-facts div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: 3px;
  color: var(--gold-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-media {
  position: relative;
  height: min(600px, calc(100vh - 190px));
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-position: center 64%;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 4200ms ease;
}

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

.hero-slide:nth-of-type(2) {
  object-position: center 50%;
}

.hero-slide:nth-of-type(3) {
  object-position: center 54%;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  content: "";
}

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile,
.expertise,
.experience,
.gallery,
.credentials,
.contact {
  max-width: var(--max);
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.62fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: end;
}

.profile-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-visual {
  height: clamp(340px, 42vw, 560px);
  overflow: hidden;
  border-radius: var(--radius);
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-item {
  min-height: 260px;
  padding: clamp(24px, 4vw, 38px);
}

.expertise-item + .expertise-item {
  border-left: 1px solid var(--line);
}

.expertise-number,
.timeline-date,
.project-status {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expertise-item p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  min-height: 250px;
  padding: 34px 26px 28px 0;
}

.timeline-item::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 999px;
  content: "";
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-dark {
  max-width: none;
  color: #fff;
  background: var(--dark);
}

.section-dark > .section-heading,
.section-dark > .project-grid {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-kicker,
.section-dark .project-status {
  color: #d7aa6d;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.project-card {
  min-height: 430px;
  background: var(--dark-soft);
}

.project-card img {
  height: 200px;
}

.project-card-body {
  padding: 26px;
}

.project-card p {
  color: rgba(255, 255, 255, 0.68);
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.gallery-header h2 {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 5;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(4),
.gallery-item:nth-child(7) {
  grid-column: span 4;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(5),
.gallery-item:nth-child(8) {
  grid-column: span 3;
}

.gallery-item img {
  transition: transform 450ms ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 18px 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent);
}

.credentials {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.credentials h2 {
  margin-bottom: 0;
}

.credential-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.credential-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding: 22px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.credential-list li::before {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--gold);
  border-radius: 999px;
  content: "";
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius);
}

.contact-panel h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: #fff;
}

.contact-links {
  display: grid;
  gap: 12px;
  min-width: 260px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.contact-links a:hover {
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 58px);
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 8, 7, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(980px, 100%);
  max-height: 92vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 8px;
  }

  .hero,
  .profile-grid,
  .credentials,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: 100%;
    height: auto;
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

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

  .expertise-item:nth-child(odd) {
    border-left: 0;
  }

  .timeline-item {
    min-height: 220px;
  }

  .gallery-header {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand span {
    font-size: 1.45rem;
  }

  .header-contact {
    display: none;
  }

  .site-nav {
    top: 68px;
    right: 12px;
    left: 12px;
  }

  .section-pad {
    padding: 70px 18px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.05rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .hero-facts,
  .expertise-list,
  .timeline,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div,
  .hero-facts div + div {
    padding: 14px 0;
    border-left: 0;
  }

  .hero-facts div + div {
    border-top: 1px solid var(--line);
  }

  .expertise-item + .expertise-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-card {
    min-height: auto;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }
}
