:root {
  color-scheme: light;
  --paper: #f2eee7;
  --paper-deep: #e6ded2;
  --surface: #fbf8f1;
  --surface-soft: rgba(251, 248, 241, 0.78);
  --ink: #242420;
  --ink-soft: #4e4d47;
  --muted: #746f66;
  --stone: #b8ad9e;
  --taupe: #8d806e;
  --sand: #d8c9b6;
  --line: rgba(36, 36, 32, 0.13);
  --line-strong: rgba(36, 36, 32, 0.22);
  --shadow: 0 26px 90px rgba(61, 54, 44, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(36, 36, 32, 0.05) 0%, transparent 32%),
    linear-gradient(180deg, #f6f1e8 0%, #ebe4d8 46%, #f7f3eb 100%);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.78);
  box-shadow: 0 16px 50px rgba(58, 51, 41, 0.08);
  backdrop-filter: blur(18px);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(36, 36, 32, 0.2);
  background: rgba(247, 243, 235, 0.92);
  box-shadow: 0 18px 58px rgba(58, 51, 41, 0.13);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark span:first-child {
  letter-spacing: 0.28em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a,
.nav-cta {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  white-space: nowrap;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 220ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(38deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-38deg);
}

.section-pad {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 144px) 0;
  scroll-margin-top: 150px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 82px);
  padding-top: clamp(92px, 9vw, 132px);
}

.hero-copy {
  align-self: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--taupe);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 4.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 2.35rem;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero-body {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms ease, color 240ms ease;
}

.button-dark {
  background: var(--ink);
  color: var(--surface);
}

.button-light {
  background: rgba(251, 248, 241, 0.54);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 18px 42px rgba(55, 49, 40, 0.14);
  transform: translateY(-2px);
}

.button[aria-disabled="true"],
.floating-whatsapp[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.hero-visual {
  min-height: 620px;
}

.hero-frame {
  position: sticky;
  top: 116px;
  display: grid;
  min-height: min(72vh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(36, 36, 32, 0.78), rgba(36, 36, 32, 0.16)),
    linear-gradient(145deg, #d4c4b0 0%, #eee7db 42%, #a99b89 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-frame::before {
  position: absolute;
  inset: 26px;
  z-index: 3;
  border: 1px solid rgba(251, 248, 241, 0.28);
  border-radius: 32px;
  content: "";
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(36, 36, 32, 0.08), rgba(36, 36, 32, 0.34)),
    linear-gradient(135deg, rgba(36, 36, 32, 0.58), rgba(36, 36, 32, 0.08) 58%);
  content: "";
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.architectural-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.architectural-lines span {
  position: absolute;
  display: block;
  background: rgba(251, 248, 241, 0.42);
}

.architectural-lines span:nth-child(1) {
  top: 16%;
  left: 17%;
  width: 46%;
  height: 1px;
}

.architectural-lines span:nth-child(2) {
  top: 16%;
  left: 63%;
  width: 1px;
  height: 54%;
}

.architectural-lines span:nth-child(3) {
  right: 18%;
  bottom: 24%;
  width: 48%;
  height: 1px;
}

.architectural-lines span:nth-child(4) {
  top: 33%;
  left: 26%;
  width: 1px;
  height: 44%;
}

.hero-caption {
  align-self: end;
  position: relative;
  z-index: 4;
  margin: 28px;
  padding: 22px;
  border: 1px solid rgba(251, 248, 241, 0.22);
  border-radius: 26px;
  background: rgba(36, 36, 32, 0.62);
  color: var(--surface);
  backdrop-filter: blur(16px);
}

.hero-caption span {
  display: block;
  margin-bottom: 8px;
  color: rgba(251, 248, 241, 0.68);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-caption strong {
  display: block;
  max-width: 280px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.statement-band {
  width: min(1240px, calc(100% - 32px));
  margin: -22px auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(251, 248, 241, 0.64);
}

.statement-band p {
  max-width: 1050px;
  margin: 0;
  font-family: var(--serif);
  font-size: 2.65rem;
  letter-spacing: 0;
  line-height: 1.16;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
}

.section-heading {
  max-width: 620px;
}

.about-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.value-grid article,
.services-grid article,
.project-card,
.why-card,
.contact-panel,
.modal-block,
.spec-panel {
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.66);
  box-shadow: 0 18px 56px rgba(61, 54, 44, 0.08);
}

.value-grid article {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
}

.value-grid span,
.project-index,
.meta-label {
  color: var(--taupe);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.value-grid h3 {
  margin: 24px 0 10px;
}

.value-grid p,
.services-grid p,
.why-list p,
.project-card p,
.modal-block p,
.spec-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-section {
  padding-top: clamp(56px, 9vw, 110px);
}

.visual-archive-section {
  padding-top: clamp(54px, 8vw, 96px);
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.portfolio-head p:not(.section-kicker) {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.76;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  text-align: left;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms ease;
}

.project-card:nth-child(1),
.project-card:nth-child(4) {
  grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(3) {
  grid-column: span 5;
}

.project-card:nth-child(5),
.project-card:nth-child(6) {
  grid-column: span 6;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 28px 80px rgba(61, 54, 44, 0.16);
  transform: translateY(-4px);
}

.project-visual {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: var(--project-tone, #cfc4b8);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.project-card:hover .project-visual img {
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.035);
}

.fallback-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(36, 36, 32, 0.54), transparent 56%),
    radial-gradient(circle at 22% 22%, rgba(251, 248, 241, 0.34), transparent 16rem),
    var(--project-tone, #cfc4b8);
}

.fallback-plan {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(251, 248, 241, 0.38);
}

.fallback-plan::before,
.fallback-plan::after {
  position: absolute;
  background: rgba(251, 248, 241, 0.35);
  content: "";
}

.fallback-plan::before {
  top: 35%;
  left: 0;
  width: 100%;
  height: 1px;
}

.fallback-plan::after {
  top: 0;
  left: 56%;
  width: 1px;
  height: 100%;
}

.fallback-label {
  position: relative;
  z-index: 1;
  max-width: 300px;
  color: rgba(251, 248, 241, 0.9);
  font-family: var(--serif);
  font-size: 2.35rem;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
}

.project-card h3 {
  max-width: 560px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.project-card p {
  max-width: 620px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
}

.project-footer .meta-label {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.detail-button::after {
  content: "→";
  transition: transform 220ms var(--ease);
}

.detail-button:hover::after,
.detail-button:focus-visible::after {
  transform: translateX(4px);
}

.services-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 84px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.services-grid article {
  padding: 24px;
  border-radius: 24px;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--taupe);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.why-section {
  padding-top: clamp(38px, 7vw, 86px);
}

.why-card {
  padding: clamp(34px, 6vw, 72px);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(36, 36, 32, 0.9), rgba(36, 36, 32, 0.72)),
    var(--surface);
  color: var(--surface);
}

.why-card .section-kicker,
.why-card p {
  color: rgba(251, 248, 241, 0.72);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.why-list article {
  padding-top: 18px;
  border-top: 1px solid rgba(251, 248, 241, 0.24);
}

.why-list h3 {
  color: var(--surface);
}

.cta-section {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto clamp(76px, 10vw, 132px);
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 201, 182, 0.72), transparent 18rem),
    rgba(251, 248, 241, 0.74);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-section p:not(.section-kicker) {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--muted);
  line-height: 1.76;
}

.cta-section .hero-actions {
  justify-content: center;
}

.page-hero {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: 5.8rem;
}

.page-hero .hero-body {
  max-width: 760px;
}

.page-shell {
  padding-top: clamp(112px, 11vw, 168px);
}

.page-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 54px);
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.page-project-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 4.8rem;
}

.project-cover-wide {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 720px;
  margin: clamp(34px, 6vw, 70px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--project-tone, var(--sand));
  box-shadow: var(--shadow);
}

.project-cover-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-page .modal-section h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 2.55rem;
  font-weight: 500;
  letter-spacing: 0;
}

.project-detail-page .modal-block h3,
.project-detail-page .spec-panel h3 {
  margin: 0 0 10px;
}

.next-project {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 7vw, 82px);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.contact-page-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(251, 248, 241, 0.7);
  box-shadow: var(--shadow);
}

.contact-page-card p {
  color: var(--muted);
  line-height: 1.78;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(36, 36, 32, 0.94);
  color: var(--surface);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: 42px;
}

.footer-brand {
  margin-bottom: 28px;
  color: var(--surface);
}

.footer-main p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(251, 248, 241, 0.68);
  line-height: 1.72;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-color: rgba(251, 248, 241, 0.14);
  border-radius: 28px;
  background: rgba(251, 248, 241, 0.06);
  font-style: normal;
}

.contact-panel a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid rgba(251, 248, 241, 0.13);
  border-radius: 18px;
  color: var(--surface);
  text-decoration: none;
  transition: background 220ms ease, transform 220ms var(--ease);
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  background: rgba(251, 248, 241, 0.08);
  transform: translateY(-1px);
}

.contact-panel span {
  color: rgba(251, 248, 241, 0.62);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 248, 241, 0.12);
  color: rgba(251, 248, 241, 0.58);
  font-size: 0.86rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(251, 248, 241, 0.14);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 18px 50px rgba(36, 36, 32, 0.18);
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.floating-whatsapp img {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.floating-whatsapp strong {
  font-size: 0.86rem;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  box-shadow: 0 24px 70px rgba(36, 36, 32, 0.24);
  transform: translateY(-2px);
}

dialog {
  width: min(1180px, calc(100% - 24px));
  max-height: min(860px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 110px rgba(36, 36, 32, 0.28);
}

dialog::backdrop {
  background: rgba(36, 36, 32, 0.58);
  backdrop-filter: blur(8px);
}

.project-modal,
.lightbox {
  overflow: hidden;
}

.modal-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 96px);
  z-index: 3;
  display: inline-flex;
  margin: 14px 14px 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.84);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.modal-content {
  max-height: calc(100vh - 46px);
  overflow: auto;
  padding: 0 clamp(18px, 4vw, 48px) clamp(28px, 5vw, 56px);
}

.modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 58px);
  padding-top: 16px;
}

.modal-title h2 {
  margin-bottom: 18px;
}

.modal-title p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.modal-meta {
  display: grid;
  align-self: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.modal-meta div {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.modal-section {
  margin-top: clamp(34px, 5vw, 58px);
}

.modal-section h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.visual-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--project-tone, var(--sand));
  color: var(--surface);
  text-align: left;
}

.visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tile .fallback-visual {
  padding: 20px;
}

.visual-tile .fallback-label {
  font-size: 1.5rem;
}

.visual-tile-studio {
  aspect-ratio: 3 / 2;
}

.tile-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  max-height: calc(100% - 24px);
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(251, 248, 241, 0.18);
  border-radius: 16px;
  background: rgba(36, 36, 32, 0.58);
  backdrop-filter: blur(12px);
}

.tile-caption strong {
  display: block;
  font-size: 0.9rem;
}

.tile-caption span {
  display: block;
  margin-top: 4px;
  color: rgba(251, 248, 241, 0.68);
  font-size: 0.76rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.modal-block,
.spec-panel {
  padding: 22px;
  border-radius: 24px;
}

.modal-block h4,
.spec-panel h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.spec-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.spec-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-list strong {
  color: var(--ink);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.lightbox {
  width: min(980px, calc(100% - 24px));
}

.lightbox-content {
  max-height: calc(100vh - 46px);
  overflow: auto;
  padding: 0 clamp(18px, 4vw, 42px) clamp(28px, 4vw, 42px);
}

.lightbox-frame {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
}

.lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: var(--ink);
}

.lightbox-placeholder {
  min-height: min(62vh, 560px);
  position: relative;
  background: var(--project-tone, var(--sand));
}

.lightbox-caption {
  padding: 18px 0 0;
}

.lightbox-caption h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: 0;
}

.lightbox-caption p {
  color: var(--muted);
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1040px) {
  h1 {
    font-size: 5.6rem;
  }

  h2 {
    font-size: 4.15rem;
  }

  .page-hero h1 {
    font-size: 5.1rem;
  }

  .page-project-hero h1 {
    font-size: 4.25rem;
  }

  .hero-lede {
    font-size: 2.05rem;
  }

  .statement-band p {
    font-size: 2.2rem;
  }

  .project-card h3 {
    font-size: 2.05rem;
  }

  .hero-section,
  .split-section,
  .services-section,
  .portfolio-head,
  .modal-hero,
  .footer-main,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-frame {
    position: relative;
    top: 0;
    min-height: 520px;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: span 6;
  }

  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 10px;
    grid-template-columns: auto auto;
    width: min(100% - 20px, 1240px);
    margin-top: 10px;
    border-radius: 28px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(247, 243, 235, 0.96);
    box-shadow: 0 18px 58px rgba(58, 51, 41, 0.13);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after,
  .nav-cta {
    display: none;
  }

  .section-pad {
    width: min(100% - 20px, 1240px);
    padding: 74px 0;
  }

  h1 {
    font-size: 4.2rem;
    line-height: 1;
  }

  h2 {
    font-size: 3.25rem;
  }

  .page-hero h1,
  .page-project-hero h1 {
    font-size: 3.75rem;
  }

  .hero-lede,
  .statement-band p {
    font-size: 1.72rem;
  }

  .project-card h3,
  .modal-section h3,
  .project-detail-page .modal-section h2,
  .lightbox-caption h3 {
    font-size: 1.85rem;
  }

  .hero-section {
    padding-top: 54px;
  }

  .hero-visual,
  .hero-frame {
    min-height: 430px;
  }

  .statement-band,
  .cta-section,
  .site-footer,
  .project-cover-wide,
  .contact-page-card {
    width: min(100% - 20px, 1240px);
    border-radius: 28px;
  }

  .value-grid,
  .services-grid,
  .modal-grid,
  .gallery-grid,
  .why-list {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: span 12;
    min-height: auto;
    border-radius: 28px;
  }

  .project-visual {
    aspect-ratio: 4 / 3;
  }

  .project-cover-wide {
    aspect-ratio: 4 / 3;
  }

  .project-body {
    padding: 22px;
  }

  .project-footer,
  .footer-bottom,
  .contact-panel a,
  .spec-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .floating-whatsapp strong {
    display: none;
  }
}

@media (max-width: 460px) {
  h1,
  .page-hero h1,
  .page-project-hero h1 {
    font-size: 3.08rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-lede,
  .statement-band p {
    font-size: 1.46rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-caption {
    margin: 16px;
  }

  .value-grid article,
  .services-grid article,
  .modal-block,
  .spec-panel {
    padding: 18px;
  }
}
