/* PRIMOC final design pass — editorial rhythm with selective glass. */
:root {
  --paper: #f8f6f2;
  --ink: #292427;
  --muted: #645e60;
  --line: #d9d1d0;
  --wine: #471123;
  --wine-soft: #793b51;
}

body { background: var(--paper); letter-spacing: -.008em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.eyebrow { font-weight: 500; letter-spacing: .17em; }
.section { padding-left: 7%; padding-right: 7%; }
.motion-ready .reveal {
  transform: translateY(18px);
  transition: opacity .62s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.motion-ready .reading-text span { color: #98898d; }

/* One calm floating navigation surface, with clear current-page state. */
.header, .header.scrolled, .solid-header .header {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(32,19,25,.12), inset 0 1px 0 rgba(255,255,255,.34);
}
.header { inset: 18px 2.5% auto; height: 78px; }
.header.scrolled { inset: 11px 2.5% auto; height: 68px; }
.desktop-nav { gap: 38px; font-weight: 500; }
.desktop-nav a { opacity: .8; transition: opacity .25s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { opacity: 1; }
.desktop-nav a[aria-current="page"]:after { transform: scaleX(1); }

/* Rounded controls retain the glass highlight without a heavy plastic shadow. */
.button, .header-cta {
  min-height: 52px;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(42,13,27,.15), inset 0 1px 0 rgba(255,255,255,.24);
}
.button:hover, .header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 27px rgba(42,13,27,.2), inset 0 1px 0 rgba(255,255,255,.3);
}
.button:before, .header-cta:before { opacity: .42; }
.button.light { box-shadow: 0 9px 26px rgba(18,11,16,.16), inset 0 1px 0 #fff; }

/* Home: confident hierarchy and tighter image-led sequence. */
.hero-content { padding-top: clamp(180px,25vh,290px); }
.hero h1 { max-width: 960px; font-size: clamp(58px,6.3vw,100px); line-height: 1.08; letter-spacing: -.052em; }
.hero-intro { gap: 54px; }
.hero-intro p { max-width: 360px; }
.hero-feature { border-radius: 17px; box-shadow: 0 14px 35px rgba(12,11,13,.2), inset 0 1px 0 rgba(255,255,255,.2); }
.hero-feature img { border-radius: 10px; }
.intro { padding-top: 135px; padding-bottom: 135px; }
.intro h2, .section-heading h2, .values h2 { line-height: 1.13; }
.stack-panel { height: 79svh; min-height: 570px; top: 88px; margin-bottom: 22px; border-radius: 17px; }
.stack-content h3 { letter-spacing: -.045em; }
.manifesto { padding-top: 125px; padding-bottom: 125px; }
.living-stage { height: 135svh; }
.living-image { border-radius: 16px; }
.values { padding-top: 130px; padding-bottom: 130px; }
.values-list details {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 25px 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  margin: 0;
}
.values-list details:first-child { border-top: 1px solid var(--line); }
.values-list details:last-child { border-bottom: 1px solid var(--line); }

/* Residence collection: image-led introduction, compact controls, precise cards. */
.collection-page .page-intro { position: relative; isolation: isolate; min-height: 690px; padding-top: 188px; padding-bottom: 68px; }
.collection-page .page-intro > .eyebrow,
.collection-page .page-intro > h1,
.collection-page .page-intro-bottom { position: relative; z-index: 2; }
.collection-page .page-intro h1 { max-width: 69%; font-size: clamp(72px,7.2vw,108px); line-height: 1.08; margin-bottom: 30px; }
.collection-page .page-intro-bottom { max-width: 64%; gap: 32px; }
.collection-page .page-intro-bottom p { max-width: 480px; }
.collection-page .page-intro-bottom span { white-space: nowrap; }
.collection-visual { position: absolute; right: 7%; top: 153px; width: 29%; height: 390px; margin: 0; border-radius: 16px; overflow: hidden; }
.collection-visual:after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(25,17,23,.43)); }
.collection-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.collection-visual figcaption { position: absolute; z-index: 1; bottom: 22px; left: 24px; color: #fff; font-size: 11px; letter-spacing: .12em; font-weight: 500; }
.projects-list { padding-top: 0; padding-bottom: 130px; }
.filters { border-radius: 18px; padding: 7px; box-shadow: 0 8px 24px rgba(71,17,35,.07); }
.filters .filter-label-short { display: none; }
.filters button, .filters button.active { padding: 12px 17px; }
.filters button.active { box-shadow: 0 4px 13px rgba(71,17,35,.16); }
.project-grid { gap: 75px 5%; }
.project-card:nth-child(2) { margin-top: 90px; }
.card-image { height: 420px; border-radius: 16px; }
.card-image img { transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .card-image img { transform: scale(1.028); }
.card-meta { margin-top: 19px; font-weight: 500; letter-spacing: .055em; }
.card-title { padding-bottom: 12px; }
.card-title h2 { margin: 0; font-size: clamp(40px,4.1vw,62px); }
.project-card>p { font-size: 15px; margin-top: 12px; }

/* Project pages: editorial gallery and one quieter section-navigation rail. */
.project-hero-title h1 { letter-spacing: -.055em; }
.project-subnav {
  top: 78px;
  margin: 0;
  min-height: 68px;
  padding: 8px 5%;
  border: 0;
  border-bottom: 1px solid rgba(71,17,35,.1);
  border-radius: 0;
  background: rgba(250,248,245,.92);
  box-shadow: 0 9px 22px rgba(71,17,35,.05);
}
.project-subnav>span { font-weight: 400; }
.project-subnav>div a { font-weight: 500; }
.project-subnav .button { min-height: 42px; box-shadow: none; }
.project-intro { padding-top: 110px; padding-bottom: 110px; }
.gallery-open { border-radius: 16px; }
.gallery-controls { box-shadow: 0 9px 24px rgba(24,12,22,.15); }
.gallery-thumbs button { border-radius: 9px; }
.gallery-thumbs img { border-radius: 6px; }
.amenities { padding-top: 115px; padding-bottom: 120px; }
.amenity-grid { gap: 14px; }
.amenity {
  min-height: 185px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.52);
  padding: 25px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.amenity>span { color: var(--wine); }
.location { background: #eee9e5; }
.location-image { border-radius: 16px; }
.project-enquiry { padding-top: 115px; padding-bottom: 115px; }

/* Company, contact, and footer. */
.about-page .page-intro { padding-bottom: 56px; }
.about-page .page-intro h1 { font-size: clamp(70px,7.8vw,110px); }
.about-panorama { position: relative; border-radius: 16px; }
.panorama-note { position: absolute; bottom: 24px; left: 24px; padding: 16px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); color: #fff; background: rgba(35,24,29,.34); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 11px; font-weight: 500; letter-spacing: .13em; }
.about-story { padding-top: 130px; padding-bottom: 130px; }
.about-signature>img { border-radius: 16px; }
.contact-page { padding-top: 180px; padding-bottom: 110px; }
.contact-copy h1 { font-size: clamp(57px,5.6vw,82px); }
.contact-form { border-radius: 17px; border-color: #e6dadd; background: #f3ecee; box-shadow: 0 18px 45px rgba(71,17,35,.07); -webkit-backdrop-filter: none; backdrop-filter: none; }
.contact-form h2 { font-size: clamp(30px,3vw,43px); }
.contact-form input,.contact-form select,.contact-form textarea { border-bottom-color: #a99a9e; }
.contact-method>a { font-weight: 500; }
.site-footer { background: #390e1e; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-nav a:hover, .footer-address a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { margin-top: 85px; }

@media (max-width: 1100px) {
  .collection-page .page-intro h1 { max-width: 68%; font-size: clamp(60px,7vw,84px); }
  .collection-visual { height: 330px; }
  .collection-page .page-intro-bottom { display: block; }
  .collection-page .page-intro-bottom span { display: block; margin-top: 16px; }
  .project-subnav { top: 78px; }
}
@media (max-width: 800px) {
  .section { padding-left: 7%; padding-right: 7%; }
  .header,.header.scrolled,.solid-header .header { inset: 10px 3% auto; height: 68px; border-radius: 16px; }
  .header.scrolled { height: 64px; }
  .hero-content { padding-top: 170px; }
  .hero h1 { font-size: clamp(48px,12vw,72px); line-height: 1.08; }
  .intro { padding-top: 88px; padding-bottom: 90px; }
  .stack-panel { height: 74svh; min-height: 500px; top: 82px; border-radius: 15px; }
  .manifesto { padding-top: 88px; padding-bottom: 88px; }
  .living-stage { height: 115svh; }
  .values { padding-top: 90px; padding-bottom: 90px; }
  .collection-page .page-intro { min-height: 0; padding-top: 145px; padding-bottom: 38px; }
  .collection-page .page-intro h1 { max-width: none; font-size: clamp(48px,12vw,74px); margin-bottom: 24px; }
  .collection-page .page-intro-bottom { max-width: none; }
  .collection-visual { position: relative; inset: auto; width: 100%; height: 300px; margin-top: 34px; border-radius: 14px; }
  .projects-list { padding-bottom: 90px; }
  .project-grid { gap: 50px; }
  .project-card:nth-child(2) { margin-top: 0; }
  .card-image { height: 390px; border-radius: 14px; }
  .project-subnav { top: 76px; padding: 12px 7%; gap: 10px; border-radius: 0; }
  .project-subnav>div { order: 3; width: 100%; overflow-x: auto; gap: 22px; flex-wrap: nowrap; scrollbar-width: none; }
  .project-subnav>div::-webkit-scrollbar { display: none; }
  .project-subnav>div a { white-space: nowrap; }
  .project-intro { padding-top: 80px; padding-bottom: 85px; }
  .amenities { padding-top: 90px; padding-bottom: 90px; }
  .amenity { min-height: 160px; padding: 20px; }
  .about-page .page-intro h1 { font-size: clamp(48px,12vw,72px); }
  .about-panorama { border-radius: 14px; }
  .panorama-note { bottom: 14px; left: 14px; padding: 12px 14px; font-size: 9px; }
  .about-story { padding-top: 90px; padding-bottom: 90px; }
  .contact-page { padding-top: 145px; padding-bottom: 85px; }
  .contact-copy h1 { font-size: clamp(50px,12vw,72px); }
  .contact-form { border-radius: 15px; }
  .footer-bottom { margin-top: 50px; }
  .filters { overflow: visible; }
  .filters .filter-label-full { display: none; }
  .filters .filter-label-short { display: inline; }
  .filters button, .filters button.active { flex: 1; min-width: 0; padding: 11px 7px; justify-content: center; gap: 5px; white-space: nowrap; }
  .filters>span { display: none; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 48px; }
  .collection-visual { height: 255px; }
  .card-image { height: 340px; }
  .amenity-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .amenity { min-height: 155px; padding: 17px; }
  .amenity h3 { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* Deliberate weight contrast: strong statements, light closing phrases. */
.intro h2,
.section-heading h2,
.values h2,
.contact-cta h2,
.about-story h2,
.about-beliefs h2,
.about-signature h2,
.project-intro h2,
.project-enquiry h2,
.contact-form h2 { font-weight: 600; }
.intro h2 em,
.section-heading h2 em,
.values h2 em,
.contact-cta h2 em,
.about-story h2 em,
.about-beliefs h2 em,
.about-signature h2 em,
.project-intro h2 em,
.project-enquiry h2 em { font-weight: 300; }
.card-title h2,
.stack-content h3,
.belief-grid h3,
.collection-page .page-intro h1,
.about-page .page-intro h1,
.contact-copy h1 { font-weight: 600; }
.collection-page .page-intro h1 em,
.about-page .page-intro h1 em,
.contact-copy h1 em { font-weight: 300; }
.project-hero-title h1 { font-weight: 500; }

/* The brand's architectural rays lend the final invitation a quiet sense of
   motion. Keep the copy on its own layer and the pattern behind it. */
.contact-cta:not(.home-contact-cta) {
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 86% 50%, #602039 0, #471123 52%, #390e1e 100%);
}
.contact-cta:not(.home-contact-cta)::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -35%;
  right: -13%;
  width: min(74vw, 1080px);
  height: 170%;
  background: url('/assets/primoc-rays.svg') center / contain no-repeat;
  opacity: .19;
  pointer-events: none;
  transform: translate3d(0, 0, 0) rotate(-8deg);
  animation: primoc-cta-rays 17s ease-in-out infinite alternate;
}
.contact-cta:not(.home-contact-cta)::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(57,14,30,.7), transparent 42%, rgba(57,14,30,.15));
  pointer-events: none;
}
.contact-cta:not(.home-contact-cta) > * { position: relative; z-index: 1; }
@keyframes primoc-cta-rays {
  to { transform: translate3d(2.5%, -1.5%, 0) rotate(-5deg); }
}
@media (max-width: 800px) {
  .contact-cta:not(.home-contact-cta)::before {
    top: -7%;
    right: -53%;
    width: 140vw;
    height: 115%;
    opacity: .12;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-cta:not(.home-contact-cta)::before { animation: none; }
}

@media (min-width: 801px) {
  .project-hero-title {
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .project-hero-title .breadcrumb { margin-bottom: clamp(34px, 6vh, 68px); }
}

@media (max-width: 800px) {
  .project-hero { height: 100svh; min-height: 680px; }
}
