/* Estudio Haris Memic :: Porto Velho RO :: Open Architectural Gallery Monograph & NBR 7190 */
:root {
  --hmc-plaster: #FAF8F4;
  --hmc-sapwood: #F1E8DA;
  --hmc-white: #FFFFFF;
  --hmc-charcoal: #1E1915;
  --hmc-bark: #5F5146;
  --hmc-cumaru: #5A2D16;
  --hmc-amber: #B35319;
  --hmc-canopy: #264A36;
  --hmc-grain: #DCD0BE;
  --hmc-display: 'Syne', system-ui, sans-serif;
  --hmc-sans: 'Onest', system-ui, -apple-system, sans-serif;
  --hmc-mono: 'Martian Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hmc-plaster);
  color: var(--hmc-charcoal);
  font-family: var(--hmc-sans);
  line-height: 1.64;
}

body {
  margin: 0;
  background-color: var(--hmc-plaster);
  color: var(--hmc-charcoal);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--hmc-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hmc-charcoal);
  text-wrap: balance;
  margin-top: 0;
}

p, li {
  text-wrap: pretty;
}

a {
  color: var(--hmc-cumaru);
  text-underline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--hmc-amber);
}

:focus-visible {
  outline: 2.5px solid var(--hmc-cumaru);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hmc-skip-joint {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--hmc-cumaru);
  color: #FFFFFF;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}

.hmc-skip-joint:focus {
  left: 18px;
}

.hmc-gallery {
  width: min(1340px, calc(100% - 48px));
  margin-inline: auto;
}

/* Minimalist Architectural Hairline Header (Zero Top Utility Bar) */
.hmc-beam-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hmc-grain);
}

.hmc-beam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
}

.hmc-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--hmc-charcoal);
  flex-shrink: 0;
}

.hmc-wm-name {
  font-family: var(--hmc-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.04em;
}

.hmc-wm-city {
  font-family: var(--hmc-mono);
  font-size: 0.65rem;
  color: var(--hmc-amber);
  text-transform: uppercase;
}

.hmc-louver-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hmc-louver-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  text-decoration: none;
  color: var(--hmc-charcoal);
  font-size: 0.91rem;
  font-weight: 500;
  position: relative;
}

.hmc-louver-link:not(:last-child)::after {
  content: "/";
  margin-left: 14px;
  color: var(--hmc-grain);
  pointer-events: none;
}

.hmc-louver-link:hover {
  color: var(--hmc-amber);
}

.hmc-cumaru-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--hmc-cumaru);
  color: #FAF8F4 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.89rem;
}

.hmc-cumaru-pill:hover {
  background: var(--hmc-charcoal);
}

.hmc-drawer-btn {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--hmc-cumaru);
  background: transparent;
  color: var(--hmc-cumaru);
  font-family: var(--hmc-mono);
  font-size: 0.76rem;
  cursor: pointer;
}

/* First Screen: Open Unboxed Sculptural Title + Asymmetric Pavilion & SVG Beam Calculator */
.hmc-monograph-stage {
  padding: 32px 0 48px;
}

.hmc-unboxed-head {
  display: grid;
  grid-template-columns: 1.55fr 0.45fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hmc-grain);
  margin-bottom: 26px;
}

.hmc-display-h1 {
  font-size: clamp(2.05rem, 3.3vw, 3.1rem);
  line-height: 1.04;
  margin: 0;
}

.hmc-colophon-stamp {
  font-family: var(--hmc-mono);
  font-size: 0.7rem;
  line-height: 1.65;
  color: var(--hmc-bark);
  border-left: 2px solid var(--hmc-amber);
  padding-left: 14px;
}

.hmc-triptych-row {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}

.hmc-pavilion-plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hmc-pavilion-img {
  flex: 1;
  min-height: 410px;
  overflow: hidden;
  border-radius: 4px;
}

.hmc-pavilion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hmc-plate-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--hmc-mono);
  font-size: 0.7rem;
  color: var(--hmc-bark);
}

/* Interactive ABNT NBR 7190:2022 Structural Pre-Dimensioning & SVG Lamella Beam */
.hmc-span-atelier {
  background: var(--hmc-sapwood);
  border-radius: 6px;
  padding: 24px 26px;
  border: 1px solid var(--hmc-grain);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hmc-sys-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hmc-sys-btn {
  min-height: 44px;
  padding: 6px 8px;
  background: var(--hmc-plaster);
  border: 1px solid var(--hmc-grain);
  color: var(--hmc-charcoal);
  font-family: var(--hmc-sans);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
}

.hmc-sys-btn.hmc-sys-on {
  background: var(--hmc-cumaru);
  color: #FAF8F4;
  border-color: var(--hmc-cumaru);
}

.hmc-slider-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hmc-range {
  width: 100%;
  accent-color: var(--hmc-cumaru);
  cursor: pointer;
}

.hmc-section-viz {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--hmc-plaster);
  border: 1px solid var(--hmc-grain);
  padding: 14px;
}

.hmc-beam-svg {
  width: 84px;
  height: 112px;
}

.hmc-calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hmc-st-lbl {
  display: block;
  font-family: var(--hmc-mono);
  font-size: 0.64rem;
  color: var(--hmc-bark);
  text-transform: uppercase;
}

.hmc-st-val {
  display: block;
  font-family: var(--hmc-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--hmc-cumaru);
}

.hmc-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hmc-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  background: var(--hmc-charcoal);
  color: #FAF8F4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.hmc-btn-solid:hover {
  background: var(--hmc-cumaru);
  color: #FAF8F4;
}

.hmc-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--hmc-charcoal);
  color: var(--hmc-charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Below-the-fold Architectural Bands */
.hmc-chapter {
  padding: 56px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 650px;
}

.hmc-chapter-sap {
  background: var(--hmc-sapwood);
  border-top: 1px solid var(--hmc-grain);
  border-bottom: 1px solid var(--hmc-grain);
}

.hmc-sec-top {
  max-width: 780px;
  margin-bottom: 30px;
}

.hmc-kicker {
  font-family: var(--hmc-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hmc-amber);
  display: block;
  margin-bottom: 6px;
}

.hmc-sec-h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}

/* Three Tectonic Studies */
.hmc-tectonic-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hmc-tectonic-card {
  background: var(--hmc-white);
  border: 1px solid var(--hmc-grain);
  display: flex;
  flex-direction: column;
}

.hmc-tec-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hmc-tec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hmc-tec-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Filterable 15 Structural Essays */
.hmc-flt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.hmc-flt-chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--hmc-grain);
  background: var(--hmc-white);
  color: var(--hmc-charcoal);
  font-family: var(--hmc-mono);
  font-size: 0.73rem;
  cursor: pointer;
}

.hmc-flt-chip.hmc-flt-on {
  background: var(--hmc-canopy);
  color: #FAF8F4;
  border-color: var(--hmc-canopy);
}

.hmc-essay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hmc-essay-card {
  background: var(--hmc-white);
  border: 1px solid var(--hmc-grain);
  border-top: 3px solid var(--hmc-cumaru);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.hmc-essay-card.hmc-card-off {
  display: none;
}

.hmc-essay-h3 {
  font-family: var(--hmc-sans);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.32;
  margin: 6px 0;
}

.hmc-essay-h3 a {
  color: var(--hmc-charcoal);
  text-decoration: none;
}

.hmc-essay-h3 a:hover {
  color: var(--hmc-amber);
  text-decoration: underline;
}

/* Porto Velho Studio & Legal Split */
.hmc-ro-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.hmc-ro-box {
  background: var(--hmc-white);
  border: 1px solid var(--hmc-grain);
  padding: 28px;
}

/* Inner Essay & Contact Pages */
.hmc-essay-stage {
  padding: 36px 0 64px;
}

.hmc-crumbs {
  font-family: var(--hmc-mono);
  font-size: 0.72rem;
  color: var(--hmc-bark);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hmc-essay-layout {
  display: grid;
  grid-template-columns: 2.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.hmc-paper {
  background: var(--hmc-white);
  border: 1px solid var(--hmc-grain);
  padding: 34px;
}

.hmc-fig {
  margin: 22px 0;
  border: 1px solid var(--hmc-grain);
}

.hmc-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.92rem;
}

.hmc-tbl th,
.hmc-tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hmc-grain);
  text-align: left;
}

.hmc-tbl th {
  width: 38%;
  background: var(--hmc-sapwood);
  font-family: var(--hmc-mono);
  font-size: 0.73rem;
  color: var(--hmc-cumaru);
}

.hmc-side-beam {
  background: var(--hmc-sapwood);
  border: 1px solid var(--hmc-grain);
  padding: 22px;
  position: sticky;
  top: 86px;
}

.hmc-side-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.hmc-side-links a {
  display: block;
  padding: 10px 12px;
  background: var(--hmc-white);
  border: 1px solid var(--hmc-grain);
  color: var(--hmc-charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.89rem;
}

/* Contact Form */
.hmc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hmc-span-2 {
  grid-column: 1 / -1;
}

.hmc-lbl {
  display: block;
  font-weight: 600;
  font-size: 0.89rem;
  margin-bottom: 6px;
}

.hmc-inp,
.hmc-sel,
.hmc-txt {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--hmc-grain);
  background: var(--hmc-plaster);
  color: var(--hmc-charcoal);
  font-family: var(--hmc-sans);
  font-size: 0.96rem;
}

.hmc-txt {
  min-height: 128px;
  resize: vertical;
}

.hmc-inp:user-valid,
.hmc-sel:user-valid,
.hmc-txt:user-valid {
  border-color: var(--hmc-canopy);
}

.hmc-inp:user-invalid,
.hmc-sel:user-invalid,
.hmc-txt:user-invalid {
  border-color: #B42318;
}

.hmc-sent {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  background: #E9F4EC;
  border: 1px solid var(--hmc-canopy);
  color: var(--hmc-canopy);
  font-weight: 600;
}

.hmc-sent.hmc-sent-on {
  display: block;
}

/* Footer */
.hmc-timber-footer {
  background: var(--hmc-charcoal);
  color: #E7DDD0;
  border-top: 4px solid var(--hmc-cumaru);
  padding: 46px 0 32px;
  margin-top: 40px;
}

.hmc-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(231, 221, 208, 0.16);
}

.hmc-foot-cols h3 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.hmc-foot-cols a {
  color: #E7DDD0;
}

.hmc-foot-cols a:hover {
  color: #F4A974;
}

.hmc-foot-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.hmc-foot-ul a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.hmc-foot-base {
  padding-top: 18px;
  font-family: var(--hmc-mono);
  font-size: 0.7rem;
  color: #B4A594;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Minimal Timber Strip LGPD Notice */
.hmc-plank-lgpd {
  position: fixed;
  right: 22px;
  bottom: 16px;
  max-width: 430px;
  background: var(--hmc-charcoal);
  color: #FAF8F4;
  border-left: 4px solid var(--hmc-amber);
  padding: 11px 16px;
  z-index: 95;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(30, 25, 21, 0.25);
}

.hmc-plank-lgpd.hmc-lgpd-off {
  display: none;
}

.hmc-plank-lgpd a {
  color: #F4A974;
}

.hmc-lgpd-ok {
  min-height: 40px;
  padding: 6px 14px;
  background: var(--hmc-amber);
  color: #FFFFFF;
  border: none;
  font-family: var(--hmc-mono);
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .hmc-unboxed-head,
  .hmc-triptych-row,
  .hmc-tectonic-trio,
  .hmc-ro-split,
  .hmc-essay-layout {
    grid-template-columns: 1fr;
  }
  .hmc-essay-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .hmc-beam-row {
    flex-wrap: wrap;
  }
  .hmc-drawer-btn {
    display: inline-flex;
    align-items: center;
  }
  .hmc-louver-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }
  .hmc-louver-nav.hmc-nav-open {
    display: flex;
  }
  .hmc-louver-link::after {
    display: none;
  }
  .hmc-essay-grid,
  .hmc-sys-pills,
  .hmc-section-viz,
  .hmc-form-grid,
  .hmc-foot-cols {
    grid-template-columns: 1fr;
  }
  .hmc-plank-lgpd {
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

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