:root {
  --dark: #181c1d;
  --deep: #111516;
  --dark-soft: #222728;
  --light: #eee9e5;
  --light-soft: #f5f1ed;
  --white: #faf8f5;
  --gold: #c59a6b;
  --gold-light: #d4b084;
  --gold-dark: #9f7448;
  --text-light: #f2eee9;
  --text-muted-light: #aaa6a1;
  --text-dark: #292727;
  --text-muted: #6e6a65;
  --container: 1240px;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; background: var(--deep); color: var(--text-light); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 12px 16px; transform: translateY(-150%); background: var(--gold); color: var(--deep); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(17,21,22,.88); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-light); }
.brand-mark { color: var(--gold); font: 500 34px/1 var(--display); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 17px; letter-spacing: .34em; }
.brand-copy small { color: #8e8a85; font-size: 8px; font-weight: 500; letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.desktop-nav a { padding-block: 7px; border-bottom: 1px solid transparent; color: #c6c2bd; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--gold); border-color: var(--gold); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 21px; border: 1px solid transparent; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #151515; }
.button-gold:hover { background: var(--gold-light); }
.button-outline { border-color: rgba(197,154,107,.72); color: var(--text-light); }
.button-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.header-cta { min-height: 44px; }
.menu-toggle { width: 46px; height: 46px; display: none; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; background: transparent; }
.menu-toggle span { width: 20px; height: 1px; display: block; background: var(--text-light); }
.mobile-menu { position: fixed; inset: 0; z-index: 100; padding: 28px 24px; display: flex; flex-direction: column; gap: 30px; visibility: hidden; opacity: 0; transform: translateY(-12px); background: rgba(9,13,14,.98); transition: opacity .25s, transform .25s, visibility .25s; }
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-brand { color: var(--gold); font-size: 16px; font-weight: 600; letter-spacing: .34em; }
.menu-close { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; background: transparent; color: var(--text-light); font-size: 25px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu nav a { color: var(--text-light); font-size: 20px; font-weight: 500; letter-spacing: .05em; }

.hero { position: relative; padding: clamp(40px,6vw,84px) 0 0; background: radial-gradient(120% 90% at 78% 30%, #232a2b 0%, #141819 55%, #0f1314 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(420px,1.1fr); align-items: center; gap: clamp(28px,4vw,52px); }
.hero-copy { position: relative; z-index: 2; animation: fade-up .65s ease both; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, h2, h3 { font-family: var(--display); }
.hero h1 { margin: 0; font-size: clamp(43px,5.25vw,68px); font-weight: 400; line-height: .99; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-description { max-width: 510px; margin: 26px 0 32px; color: #b5b1ac; font-size: 15px; line-height: 1.72; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { min-width: 0; animation: fade-up .78s ease both; }
.hero-visual img { width: 100%; max-height: 620px; object-fit: contain; filter: saturate(.9) contrast(1.03) drop-shadow(0 30px 60px rgba(0,0,0,.55)); transition: opacity .35s; }
.stats-wrap { position: relative; top: clamp(24px,4vw,48px); z-index: 5; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); padding: clamp(20px,2.4vw,30px); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: #14191a; }
.stats > div { padding: 14px 20px; border-right: 1px solid rgba(255,255,255,.08); text-align: center; }
.stats > div:last-child { border: 0; }
.stats strong { display: block; color: var(--gold); font: 400 34px/1 var(--display); }
.stats small { display: block; margin-top: 8px; color: #9c9893; font-size: 12px; }

.section { padding: clamp(78px,8vw,112px) 0; }
.projects { padding-top: clamp(104px,11vw,150px); }
.section-light { background: var(--light-soft); color: var(--text-dark); }
.section-warm { background: var(--light); color: var(--text-dark); }
.section-dark { background: var(--dark); }
.section-intro { max-width: 440px; }
.section-intro h2, .contact-copy h2 { margin: 0; font-size: clamp(36px,3.6vw,49px); font-weight: 400; line-height: 1.03; letter-spacing: -.01em; text-wrap: balance; }
.section-intro > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { margin: 20px 0 26px; color: var(--text-muted); font-size: 15px; line-height: 1.72; }
.section-intro-dark > p:not(.eyebrow) { color: var(--text-muted-light); }
.text-link { display: inline-flex; align-items: center; gap: 11px; padding-bottom: 5px; border-bottom: 1px solid rgba(159,116,72,.6); color: var(--text-dark); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { color: var(--gold-dark); }
.text-link.light { color: var(--text-light); }
.project-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 42px; }
.project-card { position: relative; min-height: 430px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 5px; background: linear-gradient(#202627,#171c1d); transition: transform .35s; }
.project-card:hover { transform: translateY(-5px); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 42%; filter: saturate(.9) contrast(1.03); transition: transform .55s; }
.project-card:hover img { transform: scale(1.035); }
.project-card div { position: relative; padding: 58px 24px 24px; background: linear-gradient(transparent,rgba(8,12,13,.9) 62%); }
.project-card h3 { margin: 0; color: var(--text-light); font-size: 24px; font-weight: 500; }
.project-card p { margin: 6px 0 0; color: #b6b2ad; font-size: 12px; }

.service-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-top: 42px; }
.service-card { padding: 30px 25px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: #1d2223; transition: transform .3s, border-color .3s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(197,154,107,.5); }
.service-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(197,154,107,.55); border-radius: 2px; color: var(--gold); }
.service-card h3 { min-height: 50px; margin: 20px 0 10px; color: var(--text-light); font-size: 21px; font-weight: 500; }
.service-card p { margin: 0; color: #9c9893; font-size: 13px; line-height: 1.65; }

.process-layout { display: grid; grid-template-columns: minmax(260px,340px) 1fr; gap: clamp(45px,6vw,86px); align-items: start; }
.process-list { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; }
.process-list li::before { content: ""; position: absolute; top: 21px; left: 42px; width: calc(100% - 26px); border-top: 1px dashed rgba(159,116,72,.48); }
.process-list li:last-child::before { display: none; }
.process-list span { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; }
.process-list h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 500; }
.process-list p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 42px; }
.insight-card { position: relative; min-height: 330px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: #1d2223; }
.insight-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); transition: transform .55s; }
.insight-card:hover img { transform: scale(1.04); }
.insight-card div { position: relative; padding: 80px 22px 22px; background: linear-gradient(transparent,rgba(8,12,13,.92) 58%); }
.insight-card time { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.insight-card h3 { margin: 8px 0 14px; color: var(--text-light); font-size: 24px; font-weight: 500; line-height: 1.05; }
.insight-card a { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: minmax(300px,440px) minmax(340px,460px); justify-content: space-between; gap: clamp(40px,7vw,100px); align-items: start; }
.contact-copy address { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(27,27,27,.14); font-style: normal; }
.contact-copy address p { margin: 0; color: #4a4744; font-size: 14px; line-height: 1.5; }
.contact-copy address strong, .contact-copy address a { color: var(--gold-dark); }
.chat { width: 100%; overflow: hidden; border: 1px solid rgba(27,27,27,.14); border-radius: 8px; background: #ece5dd; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.chat-header { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #14191a; }
.chat-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #14191a; font: 600 20px var(--display); }
.chat-header > div { flex: 1; display: flex; flex-direction: column; }
.chat-header strong { color: var(--text-light); font-size: 14px; }
.chat-header small { margin-top: 2px; color: #8fb996; font-size: 11px; }
.chat-header small i { width: 6px; height: 6px; display: inline-block; margin-right: 4px; border-radius: 50%; background: #67b77a; }
.chat-label { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.chat-messages { height: clamp(380px,52vh,470px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; background-color: #ece5dd; background-image: radial-gradient(rgba(70,62,52,.055) .7px, transparent .7px); background-size: 7px 7px; scroll-behavior: smooth; }
.message { max-width: 84%; padding: 9px 12px 7px; color: #1f2c33; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.message.bot { align-self: flex-start; border-bottom-left-radius: 2px; background: #fff; }
.message.user { align-self: flex-end; border-bottom-right-radius: 2px; background: #dcf8c6; }
.message p { margin: 0; white-space: pre-line; font-size: 13.5px; line-height: 1.5; }
.message time { display: block; margin-top: 3px; color: #8c9599; font-size: 10px; text-align: right; }
.message.user time { color: #5e8c63; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 8px 8px 8px 2px; background: #fff; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a7; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }.typing i:nth-child(3) { animation-delay: .4s; }
.chat-summary { align-self: stretch; padding: 14px 16px; border-left: 3px solid var(--gold); border-radius: 6px; background: #fff; }
.chat-summary > strong { display: block; margin-bottom: 8px; color: var(--gold-dark); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(27,27,27,.07); font-size: 12px; }
.summary-row span { color: #7a7671; }.summary-row b { color: #1f2c33; text-align: right; }
.chat-controls { min-height: 112px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(27,27,27,.1); background: #f4f0ec; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-options button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(197,154,107,.6); border-radius: 19px; background: #fff; color: #1f2c33; font-size: 12.5px; font-weight: 500; transition: .18s; }
.chat-options button:hover, .chat-options button.selected { border-color: var(--gold); background: var(--gold); color: #14191a; }
.chat-confirm { min-height: 44px; border: 0; border-radius: 4px; background: #14191a; color: var(--text-light); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.chat-input-row { display: flex; align-items: center; gap: 8px; }
.chat-input-row input { min-width: 0; min-height: 44px; flex: 1; padding: 0 14px; border: 1px solid rgba(27,27,27,.14); border-radius: 22px; background: #fff; color: #1f2c33; font-size: 13.5px; outline: none; }
.chat-input-row input.invalid { border-color: #b34b48; box-shadow: 0 0 0 2px rgba(179,75,72,.15); }
.chat-input-row button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--gold); color: #14191a; font-size: 17px; }
.chat-done { display: flex; flex-wrap: wrap; gap: 10px; }
.chat-done .button { flex: 1 1 230px; }
.chat-done button { min-height: 46px; padding: 0 18px; border: 1px solid rgba(27,27,27,.22); border-radius: 4px; background: transparent; color: #4a4744; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chat-privacy { margin: 0; color: #8a8681; font-size: 10.5px; }

.site-footer { padding: clamp(56px,7vw,88px) 0 26px; border-top: 1px solid rgba(197,154,107,.3); background: #14191a; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .9fr; gap: clamp(35px,5vw,70px); }
.site-footer h2 { max-width: 440px; margin: 0 0 24px; font-size: clamp(31px,3vw,41px); font-weight: 400; line-height: 1.06; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-contact > a, .footer-contact p { margin: 0; color: #b5b1ac; font-size: 14px; line-height: 1.5; }
.footer-contact small { margin-top: 7px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(197,154,107,.5); border-radius: 50%; color: var(--gold); font-size: 11px; }
.footer-brand .brand-copy strong { font-size: 16px; }
.footer-about { max-width: 320px; margin: 18px 0 0; color: #9c9893; font-size: 13.5px; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { margin: 0; color: #7a7671; font-size: 11.5px; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { color: #9c9893; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

@media (max-width: 1100px) {
  .desktop-nav { gap: 16px; }
  .header-cta { display: none; }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: repeat(3,1fr); }
  .process-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 670px; }
  .hero-visual { max-width: 720px; margin: -10px auto 0; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .process-list { grid-template-columns: 1fr; gap: 26px; margin-left: 20px; padding-left: 26px; border-left: 1px dashed rgba(159,116,72,.48); }
  .process-list li::before { display: none; }
  .process-list span { position: absolute; top: -4px; left: -47px; }
  .process-list h3 { margin: 0 0 6px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .chat { max-width: 570px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand-copy small { display: none; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(40px,12.2vw,55px); }
  .hero-description { font-size: 14px; }
  .button-row .button { width: 100%; }
  .hero-visual { margin-top: 8px; }
  .stats-wrap { width: calc(100% - 24px); }
  .stats { padding: 14px 8px; border-radius: 14px; }
  .stats > div { padding: 14px 7px; }
  .stats strong { font-size: 29px; }
  .stats small { font-size: 10.5px; }
  .section-intro h2, .contact-copy h2 { font-size: 36px; }
  .project-grid, .service-grid, .insight-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 440px; }
  .service-card h3 { min-height: 0; }
  .insight-card { min-height: 300px; }
  .chat-label { display: none; }
  .chat-messages { height: 430px; }
  .message { max-width: 90%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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