/*
 * БагИра — architectural detail and compact editorial rhythm.
 * Dedicated PUBLIC-site layer loaded after page-specific block assets.
 * Trim only unused spacing (~20%); retain the approved fonts, readable text
 * sizes, project imagery, form controls, header and gallery interactions.
 */

/* Abstract floor-plan corners replace the decorative asterisk. */
.architectural-mark{
  position:relative;
  display:block;
  flex:none;
  width:32px;
  height:32px;
  color:#b18c64;
}
.architectural-mark::before,
.architectural-mark::after{
  content:"";
  position:absolute;
  box-sizing:border-box;
  pointer-events:none;
}
.architectural-mark::before{
  top:1px;
  left:1px;
  width:23px;
  height:23px;
  border-top:1.5px solid currentColor;
  border-left:1.5px solid currentColor;
}
.architectural-mark::after{
  right:1px;
  bottom:1px;
  width:22px;
  height:22px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
}
@media(max-width:970px){
  .architectural-mark{width:28px;height:28px}
  .architectural-mark::before{width:21px;height:21px}
  .architectural-mark::after{width:19px;height:19px}
}

/* Global section rhythm, headings and editorial spacing. */
.section-pad{padding-block:66px}
.display{margin-block:10px 18px}
.section-head{gap:20px}
.section-head-copy{margin-bottom:10px}
.section-head .display{margin-bottom:10px}
.overline+.display{margin-top:10px}

/* Hero: keep content and carousel controls in the flow, reduce blank height. */
.hero{
  min-height:max(650px,80svh);
  padding-top:118px;
  padding-bottom:22px;
}
.hero .hero-bottom{margin-top:28px}
.hero .hero-buttons{margin-top:22px;gap:19px}
.hero .hero-eyebrow{margin-bottom:16px}
.hero h1{margin-bottom:19px}
.hero .ir-hero-socials{margin-top:16px}

/* Main page: use space for actual interiors, not empty bands. */
.intro-layout{gap:29px}
.intro-copy .display{margin:11px 0 18px}
.intro-copy p{margin-bottom:18px}
.filterbar{margin:14px 0 22px;gap:8px}
.project-grid{gap:23px 18px}
.portfolio-bottom{margin-top:24px;gap:18px}
.services-top{gap:32px}
.services-body{margin-top:22px;gap:4.8%}
.service-item{padding-block:14px}
.service-item p{margin-top:5px}
.process-head .display{margin-bottom:27px}
.steps{gap:22px}
.step{padding-top:13px}
.step h3{margin-block:9px 6px}
.about-layout{gap:clamp(36px,5.6vw,80px)}
.about-content .display{margin:10px 0}
.about-content .text-arrow{margin-top:10px}
.about-signature{margin-bottom:12px}
.quote-banner{height:auto;min-height:340px;padding-block:38px}
.quote-inner p{margin:13px 0 16px}
.journal-heading{margin-bottom:19px}
.journal-grid{gap:19px}
.article-meta{margin:11px 0 6px}
.journal-card h3{margin-bottom:10px}
.review-wrap{gap:6.4%}
.review-sample{padding-bottom:18px}
.review-sample>p{margin-bottom:19px}
.faq-layout{gap:5.6%}
.faq-layout>div:first-child p{margin-bottom:24px}
.accordion summary{padding-block:14px}
.accordion details p{margin-bottom:13px}
.consultation-layout{gap:5.6%}
.consult-art{margin-top:30px}
.consult-form{padding:27px 32px 24px}
.consult-form h3{margin:15px 0 14px}
.consult-form label:not(.privacy-check){margin-top:10px}

/* Footer is shared on every page. */
.footer{padding:42px 0 18px}
.footer-main{gap:18px;padding-bottom:30px}
.footer-brand p,.footer-col p{margin-top:12px}
.footer-col{gap:8px}
.footer-col>span{margin-bottom:6px}
.footer-bottom{padding-top:14px}
.ir-footer-links{margin-top:13px}

/* Internal pages: portfolio, project, services, designer, blog, article, policy. */
.subpage-hero{padding:125px 0 40px}
.subpage-hero h1{margin:18px 0 14px}
.subpage-content{padding:40px 0 67px}
.subpage-content .project-grid{gap:28px}
.subpage-lead-photo{margin-bottom:32px}
.subpage-gallery{margin-top:21px;gap:11px}
.subpage-content .article-body p{margin-bottom:22px}
.page-note{margin-top:18px}
.ir-seo-related{margin:27px 0 10px;padding-top:18px}
.ir-seo-related h2{margin-bottom:10px}
.ir-seo-related-grid{gap:8px}
.ir-seo-related-grid a{min-height:64px;padding:11px 14px}
.ir-seo-related-more{margin-top:13px;gap:13px}

/* Tablet and narrow desktop: keep natural stacking, reduce only empty space. */
@media(max-width:970px){
  .section-pad{padding-block:55px}
  .intro-layout{gap:24px}
  .project-grid{gap:23px}
  .about-layout{gap:29px}
  .review-wrap{gap:22px}
  .faq-layout{gap:20px}
  .consultation-layout{gap:22px}
  .subpage-hero{padding:121px 0 40px}
  .subpage-content{padding:38px 0 62px}
  .footer-main{gap:19px;padding-bottom:30px}
  .hero{
    min-height:max(645px,83svh);
    padding-top:114px;
  }
}
/* Mobile: preserve tappable buttons and photos while tightening the layout. */
@media(max-width:700px){
  .section-pad{padding-block:42px}
  .display{margin-block:9px 16px}
  .hero{
    min-height:max(615px,86svh);
    padding:108px 0 17px;
  }
  .hero .hero-buttons{margin-top:18px;gap:14px}
  .hero h1{margin-bottom:15px}
  .hero .hero-bottom{margin-top:23px}
  .hero .ir-hero-socials{margin-top:13px}
  .intro-layout{gap:22px}
  .intro-copy .display{margin:10px 0 17px}
  .intro-copy p{margin-bottom:15px}
  .filterbar{margin:15px 0 18px;gap:7px}
  .project-grid{gap:20px}
  .portfolio-bottom{margin-top:18px;gap:14px}
  .services-body{margin-top:10px}
  .service-item{padding-block:13px}
  .process-head .display{margin-bottom:18px}
  .steps{gap:16px 13px}
  .step{padding-top:10px}
  .about-layout{gap:24px}
  .quote-banner{height:auto;min-height:292px;padding-block:28px}
  .quote-inner p{margin:12px 0 14px}
  .journal-heading{margin-bottom:16px}
  .journal-grid{gap:16px}
  .review-wrap{gap:22px}
  .review-heading{margin-bottom:16px}
  .faq-layout{gap:20px}
  .faq-layout .accordion{margin-top:0}
  .accordion summary{padding-block:11px}
  .consultation-layout{gap:22px}
  .consult-form{padding:22px 19px}
  .consult-form h3{margin:11px 0}
  .consult-form label:not(.privacy-check){margin-top:9px}
  .footer{padding:36px 0 16px}
  .footer-main{gap:22px 12px;padding-bottom:23px}
  .footer-bottom{padding-top:12px}
  .subpage-hero{padding:107px 0 33px}
  .subpage-content{padding:28px 0 51px}
  .subpage-content .project-grid{gap:20px}
  .subpage-gallery{margin-top:18px;gap:9px}
  .subpage-lead-photo{margin-bottom:25px}
  .ir-seo-related{margin-top:22px;padding-top:16px}
}
@media(max-width:380px){
  .hero{padding-top:103px}
  .quote-banner{min-height:300px}
  .footer-main{gap:19px 10px}
}

/* v2: 2026-11-05 | aligned controls, authentic cutout identity and mobile resilience.
   Applied last, after all public page/block styles. */

/* FAQ: keep question, button and border independent, including an open item. */
.faq .faq-layout,
.ir-article-faq .faq-layout{
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  align-items:start;
}
.faq .faq-layout > *,
.ir-article-faq .faq-layout > *,
.faq .accordion,
.ir-article-faq .accordion{
  min-width:0;
  max-width:100%;
}
.faq .accordion details{
  display:block;
  min-width:0;
  max-width:100%;
  margin:0 0 9px;
  padding:0 16px;
  overflow:visible;
  border-radius:9px;
}
.faq .accordion summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  align-items:center;
  justify-content:stretch;
  column-gap:13px;
  min-width:0;
  width:100%;
  min-height:58px;
  padding:13px 0;
  box-sizing:border-box;
  line-height:1.45;
  cursor:pointer;
  list-style:none;
}
.faq .accordion summary::marker{content:""}
.faq .accordion summary::-webkit-details-marker{display:none}
.faq .accordion summary .faq-question{
  display:block;
  min-width:0;
  width:auto;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  font:inherit;
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
  text-align:left;
  overflow-wrap:break-word;
  hyphens:auto;
  transform:none;
}
.faq .accordion summary .faq-toggle-icon{
  display:block;
  position:relative;
  box-sizing:border-box;
  justify-self:end;
  flex:none;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid #b8a087;
  border-radius:8px;
  background:#fffdfa;
  color:#5b3d28;
  line-height:1;
  transform:none;
  transition:background-color .2s ease,border-color .2s ease;
}
.faq .accordion summary .faq-toggle-icon::before,
.faq .accordion summary .faq-toggle-icon::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  display:block;
  width:13px;
  height:1.6px;
  border:0;
  border-radius:1px;
  background:currentColor;
  transform:translate(-50%,-50%);
}
.faq .accordion summary .faq-toggle-icon::after{
  transform:translate(-50%,-50%) rotate(90deg);
  transition:opacity .16s ease;
}
.faq .accordion details[open] summary .faq-toggle-icon{
  transform:none;
  background:#f0e3d0;
  border-color:#af8c65;
}
.faq .accordion details[open] summary .faq-toggle-icon::after{
  opacity:0;
}
.faq .accordion summary:focus-visible{
  outline:2px solid #ab875c;
  outline-offset:2px;
  border-radius:4px;
}
.faq .accordion details > p{
  max-width:100%;
  margin:0 0 15px;
  padding:0 45px 0 0;
  overflow-wrap:break-word;
}

/* Authentic transparent panther artwork; never draw another badge around it. */
.about-visual .about-visual-frame{
  position:absolute;
  right:0;
  bottom:-4px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  width:clamp(138px,17vw,188px);
  height:clamp(86px,11vw,119px);
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  pointer-events:none;
}
.about-visual .about-visual-frame .ir-about-brand-mark{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  object-fit:contain;
  object-position:right bottom;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 3px 4px rgba(38,27,20,.14));
}

/* Shared footer: allow every label to wrap; use the cutout logo on every page. */
.footer .container,
.footer .footer-main,
.footer .footer-bottom,
.footer .footer-brand,
.footer .footer-col,
.footer .footer-col-end{min-width:0;max-width:100%}
.footer .footer-main{
  grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr) minmax(0,.85fr) minmax(0,1.05fr);
  column-gap:clamp(14px,2vw,28px);
}
.footer .footer-main > *{min-width:0;max-width:100%}
.footer .footer-brand > a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:13px;
  min-width:0;
  max-width:100%;
  text-decoration:none;
}
.footer .ir-footer-brand-image{
  display:block;
  width:88px;
  max-width:35%;
  height:60px;
  flex:0 0 auto;
  object-fit:contain;
  object-position:center;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 0 2px rgba(223,177,110,.23));
}
.footer .footer-brand > a > span:not(.footer-monogram){
  flex:1 1 auto;
  display:block;
  min-width:0;
  max-width:100%;
  overflow-wrap:break-word;
  line-height:1.08;
}
.footer .footer-brand > a > span small{
  display:block;
  min-width:0;
  max-width:100%;
  margin-top:5px;
  font-size:13px;
  line-height:1.45;
  letter-spacing:.04em;
  overflow-wrap:break-word;
}
.footer .footer-brand p,
.footer .footer-col p,
.footer .footer-col a,
.footer .footer-bottom span{
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
  max-width:100%;
}
.footer .footer-brand p{line-height:1.55;margin:11px 0 0}
.footer .footer-col{min-width:0}
.footer .footer-col > a:not(.footer-discuss){align-self:flex-start;max-width:100%}
.footer .footer-col-end .footer-discuss{
  display:block;
  max-width:100%;
  line-height:1.08;
  overflow-wrap:break-word;
}
.footer .ir-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:9px 13px;
  min-width:0;
  max-width:100%;
}
.footer .footer-bottom > *{min-width:0;max-width:100%}

/* Global responsive safety for content cards and interactive sections. */
.faq-layout > *,
.review-wrap > *,
.consultation-layout > *,
.intro-layout > *,
.about-layout > *,
.services-body > *,
.section-head > *,
.project-grid > *,
.journal-grid > *,
.steps > *,
.service-item > *{min-width:0}
.hero .hero-inner,
.subpage-hero .container,
.subpage-content .container{max-width:100%}
.service-item h3,
.journal-card h3,
.project-caption h3,
.article-body,
.article-body h2,
.review-sample p,
.consult-left .display{overflow-wrap:break-word}
.faq .accordion,
.faq .accordion details,
.faq .accordion summary{box-sizing:border-box}

/* Preserve a balanced desktop footer before tablet layout takes over. */
@media(max-width:1100px){
  .footer .footer-main{
    grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));
    gap:19px;
  }
  .footer .footer-col-end{grid-column:1/-1}
  .faq .faq-layout,
  .ir-article-faq .faq-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
}
@media(max-width:970px){
  .faq .faq-layout,
  .ir-article-faq .faq-layout{
    grid-template-columns:minmax(0,1fr);
    gap:20px;
  }
  .footer .footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 14px;
  }
  .footer .footer-brand,
  .footer .footer-col-end{grid-column:1/-1}
  .footer .ir-footer-brand-image{width:80px;height:55px}
}
@media(max-width:560px){
  .faq .accordion details{padding:0 12px}
  .faq .accordion summary{
    grid-template-columns:minmax(0,1fr) 32px;
    min-height:55px;
    gap:10px;
    padding:12px 0;
    line-height:1.4;
  }
  .faq .accordion summary .faq-toggle-icon{width:32px;height:32px}
  .faq .accordion details > p{padding-right:4px;margin-bottom:14px}
  .footer .footer-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer .footer-brand > a{gap:10px;align-items:center}
  .footer .ir-footer-brand-image{width:74px;height:52px}
  .footer .footer-brand > a > span:not(.footer-monogram){font-size:clamp(24px,7.8vw,31px)}
  .footer .footer-brand > a > span small{font-size:13px;letter-spacing:.02em}
  .footer .footer-brand p{font-size:17px;line-height:1.55}
  .footer .footer-col > span{font-size:15px;letter-spacing:.10em}
  .footer .footer-col > a:not(.footer-discuss){font-size:17px;line-height:1.55}
  .footer .footer-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
  .footer .footer-bottom a{align-self:flex-start}
  .about-visual .about-visual-frame{
    width:clamp(118px,34vw,153px);
    height:clamp(76px,23vw,94px);
    bottom:-3px;
  }
}
@media(max-width:360px){
  .footer .footer-col > a:not(.footer-discuss){font-size:15px}
  .footer .footer-col > span{font-size:13px}
  .footer .footer-brand > a{gap:8px}
  .footer .ir-footer-brand-image{width:63px;height:47px}
}


/* Luxury architectural process cards | 2026-11-05
   Lightweight glass surfaces, architectural links and refined hover movements. */
.process .process-head .display{margin-bottom:25px}
.process .process-journey{
  --journey-gap:clamp(18px,2vw,28px);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:var(--journey-gap);
  width:100%;
  margin:0;
  padding:5px 0 9px;
  list-style:none;
}
.process .process-card{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:178px;
  padding:22px 20px 23px;
  border:1px solid rgba(169,138,105,.34);
  border-top-color:rgba(255,255,255,.9);
  border-radius:12px;
  background:linear-gradient(147deg,rgba(255,255,255,.70),rgba(255,255,255,.29) 90%);
  box-shadow:0 8px 26px rgba(51,36,22,.035),inset 0 1px 0 rgba(255,255,255,.65);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:#33271e;
  transform:translate3d(0,0,0);
  transition:transform .66s cubic-bezier(.22,1,.36,1),
             box-shadow .66s cubic-bezier(.22,1,.36,1),
             border-color .46s ease,
             background-color .46s ease;
}
.process .process-card::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(122deg,rgba(255,255,255,.70) 0%,rgba(244,225,199,.28) 48%,rgba(255,255,255,.13) 100%);
  opacity:0;
  pointer-events:none;
  transition:opacity .65s cubic-bezier(.22,1,.36,1);
}
.process .process-card::after{
  content:"";
  position:absolute;
  left:20px;
  bottom:-1px;
  width:calc(100% - 40px);
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,transparent,#af8b63 16%,#d6b995 75%,transparent);
  transform:scaleX(0);
  transform-origin:left center;
  pointer-events:none;
  transition:transform .72s cubic-bezier(.22,1,.36,1);
}
.process .process-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.process .process-card .process-number{
  display:block;
  flex:none;
  width:auto;
  height:auto;
  padding:0;
  border:0;
  background:none;
  font:500 34px/1 var(--serif);
  letter-spacing:-.045em;
  color:#a27d56;
}
.process .process-ornament{
  display:block;
  flex:0 0 auto;
  width:26px;
  height:1px;
  background:linear-gradient(90deg,transparent,#bb986e);
  transform-origin:right center;
  transition:width .64s cubic-bezier(.22,1,.36,1),background-color .64s ease;
}
.process .process-card h3{
  margin:0;
  font:500 clamp(23px,2.03vw,29px)/1.21 var(--serif);
  letter-spacing:-.017em;
  color:#32261e;
  overflow-wrap:break-word;
  hyphens:auto;
}
.process .process-card p{
  max-width:100%;
  margin:10px 0 0;
  font:400 19px/1.55 var(--sans);
  color:#756556;
  overflow-wrap:break-word;
}
/* Each connector belongs to its preceding step; it is decorative, not a control. */
.process .process-connector{
  position:absolute;
  z-index:3;
  top:50%;
  left:100%;
  display:block;
  width:calc(var(--journey-gap) + 1px);
  height:20px;
  pointer-events:none;
  transform:translateY(-50%);
}
.process .process-connector-track{
  position:absolute;
  top:50%;
  left:1px;
  right:7px;
  display:block;
  height:1px;
  background:rgba(173,137,96,.67);
  transform:translateY(-50%);
}
.process .process-connector-track::after{
  content:"";
  position:absolute;
  inset:-.5px 0;
  background:#b58e60;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .64s cubic-bezier(.22,1,.36,1);
}
.process .process-connector-tip{
  position:absolute;
  top:50%;
  right:4px;
  width:6px;
  height:6px;
  border-top:1px solid #ad8960;
  border-right:1px solid #ad8960;
  transform:translateY(-50%) rotate(45deg);
  transition:border-color .5s ease;
}
@media(hover:hover) and (pointer:fine){
  .process .process-card:hover{
    transform:translate3d(0,-7px,0);
    background-color:rgba(255,255,255,.3);
    border-color:rgba(183,145,105,.65);
    box-shadow:0 18px 36px rgba(53,38,23,.095),0 3px 8px rgba(53,38,23,.045),inset 0 1px 0 #fff;
  }
  .process .process-card:hover::before{opacity:1}
  .process .process-card:hover::after{transform:scaleX(1)}
  .process .process-card:hover .process-ornament{width:42px}
  .process .process-card:hover .process-connector-track::after{transform:scaleX(1)}
  .process .process-card:hover .process-connector-tip{border-color:#846139}
}
/* Tall-but-narrow layouts use a connected vertical sequence instead of clipped horizontal cards. */
@media(max-width:1050px){
  .process .process-journey{
    grid-template-columns:minmax(0,1fr);
    max-width:640px;
    margin-inline:auto;
    --journey-gap:24px;
  }
  .process .process-card{
    min-height:116px;
    padding:17px 20px 18px;
  }
  .process .process-card-top{margin-bottom:8px}
  .process .process-card h3{font-size:clamp(25px,3.3vw,31px)}
  .process .process-connector{
    top:100%;
    left:50%;
    width:20px;
    height:var(--journey-gap);
    transform:translateX(-50%);
  }
  .process .process-connector-track{
    top:1px;
    bottom:7px;
    left:50%;
    right:auto;
    width:1px;
    height:auto;
    transform:translateX(-50%);
  }
  .process .process-connector-track::after{
    inset:0 -1px;
    transform:scaleY(0);
    transform-origin:center top;
  }
  .process .process-connector-tip{
    top:auto;
    bottom:4px;
    left:50%;
    right:auto;
    transform:translateX(-50%) rotate(135deg);
  }
}
@media(max-width:1050px) and (hover:hover) and (pointer:fine){
  .process .process-card:hover .process-connector-track::after{transform:scaleY(1)}
}
@media(max-width:700px){
  .process .process-head .display{margin-bottom:18px}
  .process .process-journey{
    width:100%;
    gap:21px;
    --journey-gap:21px;
    padding-block:2px 6px;
  }
  .process .process-card{
    min-height:110px;
    padding:16px 17px 17px;
    border-radius:10px;
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
  }
  .process .process-card .process-number{font-size:31px}
  .process .process-card h3{font-size:clamp(24px,6vw,30px)}
  .process .process-card p{font-size:18px;line-height:1.45}
  .process .process-card-top{margin-bottom:8px}
  .process .process-card::after{left:17px;width:calc(100% - 34px)}
}
@media(prefers-reduced-motion:reduce){
  .process .process-card,
  .process .process-card::before,
  .process .process-card::after,
  .process .process-ornament,
  .process .process-connector-track::after,
  .process .process-connector-tip{transition:none!important;animation:none!important}
  .process .process-card:hover{transform:none}
}
