/* Dhoctecture — Home A
   Transcribed 1:1 from the design source (Dhoctecture Home A.dc.html).
   All styles live here (no inline styles) so CSP can stay at style-src 'self'. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #faf9f6;
  color: #141310;
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #8a8378; }
::selection { background: #141310; color: #faf9f6; }
[hidden] { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes viewOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-16px); }
}

/* Scroll reveal — animation is only ADDED on viewport entry, never pre-hidden */
.revealed { animation: rise .9s cubic-bezier(.22,.8,.24,1) both; }

/* View switching (Home ⇄ Selected Works) */
.view-exit  { animation: viewOut .26s ease both; }
.view-enter { animation: rise .7s cubic-bezier(.22,.8,.24,1) both; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 44px;
}
.topbar-light {
  position: absolute; top: 0; left: 0; right: 0;
  color: #faf9f6;
  animation: fadeIn 1s .2s both;
}
.wordmark { font-weight: 700; font-size: 15px; letter-spacing: .14em; }
.wordmark .reg { font-size: 9px; vertical-align: super; }
.topnav { display: flex; gap: 38px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; }
.topbar-light .topnav { color: #faf9f6; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.topnav .is-active { font-weight: 700; }

.btn-outline-light {
  border: 1px solid rgba(250,249,246,.65); border-radius: 999px;
  padding: 12px 26px; font-size: 13px; font-weight: 500;
  transition: background .3s, color .3s;
}
.btn-outline-light:hover { background: #faf9f6; color: #141310; }
.btn-solid-dark {
  background: #141310; color: #faf9f6; border-radius: 999px;
  padding: 12px 26px; font-size: 13px; font-weight: 500; transition: opacity .3s;
}
.btn-solid-dark:hover { opacity: .82; color: #faf9f6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden; background: #1a1815;
}
.hero-bg {
  position: absolute; left: 0; right: 0; top: -14%; bottom: -14%;
  will-change: transform;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,9,7,.45) 0%, rgba(10,9,7,.08) 34%, rgba(10,9,7,0) 55%, rgba(10,9,7,.55) 100%);
}
.hero-caption {
  position: absolute; top: 130px; left: 44px; max-width: 280px; margin: 0;
  color: rgba(250,249,246,.75); font-size: 12.5px; line-height: 1.6;
  animation: rise .9s .5s cubic-bezier(.22,.8,.24,1) both;
}
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; padding: 0 44px 56px; color: #faf9f6;
}
.hero-title-block { animation: rise 1s .35s cubic-bezier(.22,.8,.24,1) both; }
.hero-display {
  margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(64px, 9.5vw, 138px); line-height: .94; letter-spacing: -.01em;
}
.hero-display em, .section-title em, .faq-title em, .sw-display em, .footer-display em { font-style: italic; }
.btn-solid-light {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  background: #faf9f6; color: #141310; border-radius: 999px;
  padding: 15px 30px; font-size: 14px; font-weight: 600; transition: gap .3s;
}
.btn-solid-light:hover { gap: 20px; color: #141310; }
.btn-solid-light .arrow { font-size: 16px; }
.hero-aside { max-width: 290px; animation: rise 1s .55s cubic-bezier(.22,.8,.24,1) both; }
.hero-aside h3 {
  margin: 0 0 10px; font-family: 'Instrument Serif', serif;
  font-weight: 400; font-style: italic; font-size: 26px;
}
.hero-aside p { margin: 0; color: rgba(250,249,246,.72); font-size: 13px; line-height: 1.65; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(20,19,16,.12);
}
.stat {
  padding: 44px; border-left: 1px solid rgba(20,19,16,.12);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-n { font-family: 'Instrument Serif', serif; font-size: 58px; line-height: 1; }
.stat-label { font-size: 12.5px; color: #8a8378; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px;
}
.section-title {
  margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(48px, 6vw, 84px); line-height: 1;
}
.section-note { margin: 0; max-width: 260px; color: #8a8378; font-size: 13px; line-height: 1.6; }

/* ---------- Services ---------- */
.services { padding: 110px 44px 90px; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-rows: minmax(230px, auto); gap: 18px;
}
.svc-featured {
  grid-column: span 2; position: relative; border-radius: 22px;
  overflow: hidden; background: #141310; min-height: 300px; cursor: pointer;
}
.svc-featured-photo { position: absolute; inset: 0; opacity: .55; filter: grayscale(1) contrast(1.1); }
.svc-featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-featured-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(20,19,16,0) 30%, rgba(20,19,16,.82) 85%);
}
.svc-featured-pill {
  position: absolute; top: 16px; right: 16px; background: #faf9f6; color: #141310;
  border-radius: 999px; padding: 10px 20px; font-size: 12px; font-weight: 600; pointer-events: none;
}
.svc-featured-copy { position: absolute; left: 26px; right: 26px; bottom: 24px; color: #faf9f6; pointer-events: none; }
.svc-featured-copy h3 { margin: 0 0 8px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 34px; }
.svc-featured-copy p { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.6; color: rgba(250,249,246,.72); }

.svc-card {
  background: #f1efe8; border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .35s, transform .35s, color .35s; cursor: pointer;
}
.svc-card:hover { background: #141310; color: #faf9f6; transform: translateY(-4px); }
.svc-chip {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(20,19,16,.07);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.svc-card:hover .svc-chip { background: rgba(250,249,246,.12); }
.svc-copy { margin-top: auto; }
.svc-title { margin: 0 0 8px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 27px; color: inherit; }
.svc-desc { margin: 0; font-size: 13px; line-height: 1.6; opacity: .6; color: inherit; }
.svc-list { display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; }
.svc-list p { margin: 0; font-size: 12px; line-height: 1.8; color: #8a8378; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(20,19,16,.12);
  border-bottom: 1px solid rgba(20,19,16,.12);
  padding: 26px 0; margin: 0 0 90px;
}
.marquee {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite; white-space: nowrap;
}
.mq-item {
  display: flex; align-items: baseline; gap: 26px; padding-right: 26px;
  font-size: 46px; font-weight: 500; letter-spacing: -.02em;
  font-family: 'Archivo', sans-serif; color: #141310;
}
.mq-item.serif { font-family: 'Instrument Serif', serif; font-style: italic; color: #8a8378; }
.mq-star { font-size: 24px; color: #c9c3b8; }

/* ---------- Recent Projects ---------- */
.works { padding: 0 44px 110px; }
.works-head { margin-bottom: 44px; }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #141310; border-radius: 999px; padding: 13px 26px;
  font-size: 13px; font-weight: 600; transition: background .3s, color .3s;
}
.btn-outline-dark:hover { background: #141310; color: #faf9f6; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.work-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.work-photo { height: 400px; overflow: hidden; border-radius: 4px; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-name { font-size: 13.5px; font-weight: 600; }
.work-loc { font-size: 12px; color: #8a8378; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
  padding: 0 44px 120px;
}
.faq-title {
  margin: 0 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05;
}
.faq-note { margin: 0; color: #8a8378; font-size: 13px; }
.mail-link { text-decoration: underline; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid rgba(20,19,16,.15); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; cursor: pointer; transition: padding .3s;
}
.faq-q:hover { padding-left: 14px; }
.faq-q-text { font-size: 15px; font-weight: 500; }
.faq-icon { font-size: 20px; font-weight: 300; }
.faq-a {
  margin: 0; padding: 0 40px 24px 4px; font-size: 13.5px; line-height: 1.7;
  color: #8a8378; animation: rise .4s cubic-bezier(.22,.8,.24,1) both;
}
.faq-item:not(.open) .faq-a { display: none; }

/* ---------- Selected Works view ---------- */
.topbar-dark { color: #141310; }
.sw-header { padding: 70px 44px 40px; animation: rise .9s cubic-bezier(.22,.8,.24,1) both; }
.sw-eyebrow { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .12em; color: #8a8378; }
.sw-display {
  margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(64px, 9vw, 128px); line-height: .96;
}
.sw-chips { display: flex; gap: 10px; padding: 0 44px 48px; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(20,19,16,.25); border-radius: 999px; padding: 11px 22px;
  font-size: 13px; font-weight: 500; font-family: 'Archivo', sans-serif; cursor: pointer;
  transition: background .3s, color .3s; background: transparent; color: #141310;
}
.chip.active { background: #141310; color: #faf9f6; }
.sw-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px; padding: 0 44px 110px;
}
.sw-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin-top: 0; }
.sw-card.offset { margin-top: 56px; }
.sw-photo { height: 460px; overflow: hidden; border-radius: 4px; }
.sw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid rgba(20,19,16,.15); padding-bottom: 16px;
}
.sw-name { margin: 0 0 4px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; }
.sw-loc { margin: 0; font-size: 12.5px; color: #8a8378; }
.sw-meta { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a8378; white-space: nowrap; }
/* Gentle stagger when the view enters */
.view-enter .sw-card { animation: rise .8s cubic-bezier(.22,.8,.24,1) both; }
.view-enter .sw-card:nth-child(2) { animation-delay: .08s; }
.view-enter .sw-card:nth-child(3) { animation-delay: .12s; }
.view-enter .sw-card:nth-child(4) { animation-delay: .18s; }
.view-enter .sw-card:nth-child(5) { animation-delay: .22s; }
.view-enter .sw-card:nth-child(6) { animation-delay: .26s; }

/* ---------- Service detail view ---------- */
.svd-header { padding: 70px 44px 44px; animation: rise .9s cubic-bezier(.22,.8,.24,1) both; }
.svd-photo {
  margin: 0 44px; height: 380px; border-radius: 22px;
  overflow: hidden; background: #141310;
}
.svd-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .55; filter: grayscale(1) contrast(1.1);
}
.svd-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  padding: 64px 44px 90px;
}
.svd-lead {
  margin: 0 0 26px; font-family: 'Instrument Serif', serif; font-style: italic;
  font-weight: 400; font-size: 27px; line-height: 1.35; max-width: 560px;
}
.svd-copy p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.8; color: rgba(20,19,16,.72); max-width: 560px; }
.svd-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px;
  background: #141310; color: #faf9f6; border-radius: 999px;
  padding: 15px 30px; font-size: 14px; font-weight: 600; transition: gap .3s;
}
.svd-cta:hover { gap: 20px; color: #faf9f6; }
.svd-side-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #8a8378; }
.svd-row { border-top: 1px solid rgba(20,19,16,.15); padding: 18px 4px; }
.svd-row-title { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.svd-row-desc { margin: 0; font-size: 13px; line-height: 1.6; color: #8a8378; }
.svd-meta { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.svd-meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.svd-meta-label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: #8a8378; }
.svd-meta-value { font-size: 13px; text-align: right; }
.svd-next {
  margin: 0 44px; border-top: 1px solid rgba(20,19,16,.15);
  padding: 34px 4px 110px; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; cursor: pointer;
}
.svd-next-label { font-size: 12.5px; letter-spacing: .12em; color: #8a8378; }
.svd-next-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Instrument Serif', serif; font-size: 34px; transition: gap .3s;
}
.svd-next:hover .svd-next-title { gap: 22px; color: #8a8378; }
/* Gentle stagger when the view enters */
.view-enter .svd-photo { animation: rise .8s .08s cubic-bezier(.22,.8,.24,1) both; }
.view-enter .svd-body { animation: rise .8s .16s cubic-bezier(.22,.8,.24,1) both; }
.view-enter .svd-next { animation: rise .8s .24s cubic-bezier(.22,.8,.24,1) both; }

/* ---------- Project detail overlay ---------- */
.pm-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(10,9,7,.62);
  backdrop-filter: blur(10px); display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.pm-panel {
  background: #faf9f6; border-radius: 16px; width: min(1080px, 100%);
  max-height: 92vh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
  animation: rise .45s cubic-bezier(.22,.8,.24,1) both;
}
.pm-photo { min-height: 520px; }
.pm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-body { padding: 36px 40px; display: flex; flex-direction: column; overflow-y: auto; min-width: 0; }
.pm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.pm-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a8378; }
.pm-round {
  background: none; border: 1px solid rgba(20,19,16,.2); border-radius: 50%;
  width: 38px; height: 38px; flex: none; font-size: 13px; cursor: pointer;
  color: #141310; transition: background .3s, color .3s;
}
.pm-round:hover { background: #141310; color: #faf9f6; }
.pm-name {
  margin: 0 0 6px; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(34px, 3.8vw, 50px); line-height: 1.05;
}
.pm-loc { margin: 0 0 18px; font-size: 12.5px; color: #8a8378; }
.pm-desc { margin: 0 0 26px; font-size: 14px; line-height: 1.75; color: #3f3c36; }
.pm-meta {
  border-top: 1px solid rgba(20,19,16,.15); padding-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 28px;
}
.pm-meta-label { margin: 0 0 3px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a8378; }
.pm-meta-value { margin: 0; font-size: 14px; font-weight: 500; }
.pm-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pm-nav { display: flex; gap: 10px; }
.pm-cta {
  background: #141310; color: #faf9f6; border-radius: 999px;
  padding: 14px 26px; font-size: 13px; font-weight: 600; transition: opacity .3s; white-space: nowrap;
}
.pm-cta:hover { opacity: .85; color: #faf9f6; }
.work-card, .sw-card { cursor: pointer; }

/* ---------- Footer ---------- */
.footer { background: #141310; color: #faf9f6; padding: 100px 44px 28px; overflow: hidden; }
.footer a:hover { color: #8a8378; }
.footer-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-display {
  margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(52px, 7vw, 104px); line-height: 1;
}
.btn-book { margin-top: 0; padding: 18px 36px; font-size: 15px; transition: gap .3s; }
.btn-book:hover { gap: 22px; }
.footer-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin: 80px 0 70px; font-size: 13px; line-height: 1.8; color: rgba(250,249,246,.65);
}
.footer-label { margin: 0 0 6px; color: #faf9f6; font-weight: 600; letter-spacing: .08em; font-size: 12px; }
.footer-wordmark {
  font-weight: 800; font-size: clamp(60px, 11.4vw, 220px); line-height: .82;
  letter-spacing: -.03em; color: rgba(250,249,246,.96); text-align: center;
}
.footer-bottom {
  display: flex; justify-content: space-between; margin-top: 26px;
  font-size: 11.5px; color: rgba(250,249,246,.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar { padding: 22px 24px; }
  .topnav { gap: 22px; }
  .hero-caption { left: 24px; }
  .hero-bottom { padding: 0 24px 48px; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 24px; }
  .services { padding: 90px 24px 70px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-featured { grid-column: span 1; }
  .works { padding: 0 24px 90px; }
  .works-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 90px; }
  .svd-header { padding: 56px 24px 28px; }
  .svd-photo { margin: 0 24px; height: 260px; }
  .svd-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 70px; }
  .svd-next { margin: 0 24px; padding-bottom: 90px; }
  .svd-next-title { font-size: 26px; }
  .sw-header { padding: 56px 24px 32px; }
  .sw-chips { padding: 0 24px 36px; }
  .sw-grid { grid-template-columns: 1fr; padding: 0 24px 90px; }
  .sw-card.offset { margin-top: 0; }
  .pm-panel { grid-template-columns: 1fr; overflow-y: auto; }
  .pm-photo { min-height: 0; height: 260px; }
  .pm-body { overflow-y: visible; }
  .footer { padding: 80px 24px 24px; }
  .footer-info { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-caption, .hero-title-block, .hero-aside, .topbar-light,
  .sw-header, .svd-header, .revealed, .view-enter, .view-exit,
  .view-enter .sw-card, .view-enter .svd-photo, .view-enter .svd-body,
  .view-enter .svd-next, .faq-a, .pm-panel { animation: none !important; }
  .marquee { animation-duration: 60s; }
}
