:root {
  --ink: #171716;
  --paper: #f3f0e9;
  --paper-2: #e7e2d9;
  --rust: #b44d32;
  --muted: #7d7a73;
  --line: rgba(23, 23, 22, 0.18);
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 68px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(10,10,10,.7), transparent);
  transition: background .3s ease, height .3s ease;
}
.site-header.scrolled { height: 66px; background: rgba(23,23,22,.96); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid currentColor; color: var(--rust); font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .88rem; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: #df896f; }
.nav-cta { padding: 9px 17px; border: 1px solid rgba(255,255,255,.55); }
.menu-toggle { display: none; color: #fff; background: none; border: 0; cursor: pointer; }

.hero { position: relative; min-height: 720px; height: 94vh; max-height: 940px; display: flex; align-items: center; overflow: hidden; background: #151515; color: #fff; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(9,9,9,.93) 0%, rgba(9,9,9,.74) 33%, rgba(9,9,9,.12) 69%, rgba(9,9,9,.08) 100%); }
.hero-content { position: relative; z-index: 2; width: min(700px, 82vw); margin-left: clamp(22px, 7vw, 118px); padding-top: 46px; }
.eyebrow { margin: 0 0 24px; color: #d98a74; font-size: .78rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(2.9rem, 6.4vw, 6.9rem); font-weight: 400; line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: #cf6a4e; font-style: normal; }
.hero-copy { max-width: 550px; margin: 28px 0 32px; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.35vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; font-weight: 600; }
.button-primary { color: #fff; background: var(--rust); transition: background .2s ease, transform .2s ease; }
.button-primary:hover { background: #c25a3f; transform: translateY(-2px); }
.text-link { border-bottom: 1px solid rgba(255,255,255,.5); padding: 11px 0 6px; }
.text-link span, .contact-mail span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.text-link:hover span, .contact-mail:hover span { transform: translate(3px,-3px); }
.concept-note { position: absolute; z-index: 2; right: 26px; bottom: 18px; margin: 0; color: rgba(255,255,255,.48); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: clamp(82px, 11vw, 150px) clamp(22px, 7vw, 118px); }
.section-kicker { margin-bottom: 52px; color: var(--rust); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.intro-grid, .about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(45px, 8vw, 145px); }
.intro h2, .about h2, .contact h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.055em; }
.intro h2 { font-size: clamp(2.4rem, 4.6vw, 5rem); line-height: 1.04; }
.intro-copy { max-width: 600px; padding-top: 8px; color: #4e4d49; font-size: 1.08rem; }
.intro-copy p:first-child { margin-top: 0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 96px; border-top: 1px solid var(--line); }
.service-card { min-height: 292px; padding: 30px 30px 28px 0; border-right: 1px solid var(--line); }
.service-card + .service-card { padding-left: 30px; }
.service-card:last-child { border-right: 0; }
.service-card > span { color: var(--rust); font-size: .76rem; }
.service-card h3 { margin: 54px 0 15px; font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.service-card p { max-width: 340px; margin: 0; color: var(--muted); }

.projects { color: #f7f5f0; background: var(--ink); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading .section-kicker { margin: 0; }
.section-heading > p { max-width: 465px; margin: 0; color: rgba(255,255,255,.6); }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 54px; }
.filter-button { padding: 10px 17px; color: rgba(255,255,255,.62); background: transparent; border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button.active { color: #fff; border-color: var(--rust); background: var(--rust); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.project-card { position: relative; min-height: 430px; padding: 0; overflow: hidden; color: #fff; text-align: left; background: #262624; border: 0; cursor: pointer; }
.project-card-wide { grid-column: 1 / -1; min-height: 560px; }
.project-card[hidden] { display: none; }
.project-card img, .project-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-card img { object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project-overlay { background: linear-gradient(180deg, transparent 34%, rgba(8,8,8,.86) 100%); transition: background .25s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.035); }
.project-card:hover .project-overlay, .project-card:focus-visible .project-overlay { background: linear-gradient(180deg, rgba(8,8,8,.04) 25%, rgba(8,8,8,.92) 100%); }
.project-card:focus-visible { outline: 3px solid #df896f; outline-offset: 3px; }
.project-meta { position: absolute; z-index: 2; left: clamp(20px, 3vw, 42px); right: 24px; bottom: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.project-meta small { margin-bottom: 11px; color: #e58d74; font-size: .74rem; font-style: normal; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.project-meta strong { font-family: var(--display); font-size: clamp(1.65rem, 3vw, 3rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.project-meta em { margin-top: 9px; color: rgba(255,255,255,.7); font-size: .88rem; font-style: normal; }

.project-dialog { width: min(1280px, 94vw); max-width: none; height: min(820px, 92vh); max-height: none; padding: 0; overflow: hidden; color: var(--ink); background: var(--paper); border: 0; }
.project-dialog::backdrop { background: rgba(5,5,5,.86); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 4; top: 18px; right: 20px; padding: 9px 13px; color: #fff; background: rgba(15,15,15,.72); border: 1px solid rgba(255,255,255,.3); cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); height: 100%; }
.dialog-visual { position: relative; display: grid; place-items: center; min-width: 0; background: #111; }
.dialog-visual > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: rgba(15,15,15,.65); border: 1px solid rgba(255,255,255,.25); cursor: pointer; transform: translateY(-50%); }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.dialog-info { padding: 66px 34px 30px; overflow-y: auto; }
.dialog-info > p:first-child { margin: 0 0 14px; color: var(--rust); font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.dialog-info h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
.dialog-info > p:nth-child(3) { margin: 22px 0; color: #65625d; }
.dialog-count { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.dialog-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.dialog-thumbs button { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; background: #ddd; border: 2px solid transparent; cursor: pointer; }
.dialog-thumbs button.active { border-color: var(--rust); }
.dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.about { background: var(--paper-2); }
.about-grid { align-items: start; }
.about-visual { position: relative; min-height: 660px; overflow: visible; }
.portrait { width: 88%; height: 660px; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.personal-logo { position: absolute; right: 0; bottom: -30px; display: grid; place-items: center; width: min(270px, 50%); aspect-ratio: 1; padding: 10px; background: #f5f2ec; box-shadow: 0 22px 55px rgba(23,23,22,.18); }
.personal-logo img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.about-statement { position: relative; margin-bottom: 44px; }
.quote-mark { position: absolute; top: -53px; left: -4px; color: var(--rust); font-family: Georgia, serif; font-size: 6rem; line-height: 1; opacity: .28; }
.about h2 { position: relative; font-size: clamp(2.1rem, 3.8vw, 4.2rem); line-height: 1.1; }
.about-copy { color: #4e4d49; font-size: 1.05rem; }
.about-copy > p { margin-top: 0; }
.facts { margin: 52px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts a { border-bottom: 1px solid var(--line); }

.contact { padding: clamp(94px, 13vw, 180px) clamp(22px, 7vw, 118px); color: #fff; background: var(--rust); }
.contact .eyebrow { color: rgba(255,255,255,.68); }
.contact h2 { max-width: 1050px; font-size: clamp(3.1rem, 7.6vw, 8.2rem); line-height: .96; }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 52px; }
.contact-links a { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.55); font-size: clamp(1rem, 1.7vw, 1.4rem); }
.contact-links span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.contact-links a:hover span { transform: translate(3px,-3px); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px clamp(22px, 4vw, 68px); color: rgba(255,255,255,.55); background: var(--ink); font-size: .78rem; }
.footer-brand { color: #fff; }
footer p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 820px) {
  .site-header { height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 66px; left: 0; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px; background: rgba(23,23,22,.98); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-cta { border: 0; }
  .hero { min-height: 690px; height: 92svh; align-items: flex-end; }
  .hero-image { object-position: 61% center; opacity: .78; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,10,10,.1) 0%, rgba(10,10,10,.82) 58%, rgba(10,10,10,.98) 100%); }
  .hero-content { width: auto; margin: 0 22px 56px; padding: 0; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .hero-copy { max-width: 470px; }
  .concept-note { display: none; }
  .intro-grid, .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 580px; margin-bottom: 35px; }
  .portrait { width: 88%; height: 580px; }
  .services { grid-template-columns: 1fr; margin-top: 64px; }
  .service-card { min-height: auto; padding: 26px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card + .service-card { padding-left: 0; }
  .service-card h3 { margin-top: 28px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-wide { grid-column: auto; min-height: 390px; }
  .dialog-layout { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 55vh) auto; overflow-y: auto; }
  .project-dialog { height: 92vh; overflow-y: auto; }
  .dialog-info { padding: 30px 22px; overflow: visible; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .button { width: 100%; }
  .intro-grid, .about-grid { gap: 38px; }
  .section-kicker { margin-bottom: 34px; }
  .facts div { grid-template-columns: 88px 1fr; }
  .about-visual { min-height: 470px; }
  .portrait { width: 92%; height: 470px; }
  .personal-logo { width: 46%; bottom: -22px; }
  .project-card, .project-card-wide { min-height: 330px; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
