:root {
  --white: #ffffff;
  --paper: #f4f4f2;
  --concrete: #b9bbb8;
  --line: #d8d9d5;
  --ink: #11100e;
  --muted: #6d6d67;
  --graphite: #242321;
  --stone: #8a887b;
  --olive: #72745f;
  --shadow: 0 22px 80px rgba(17, 16, 14, 0.12);
  --serif: "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.is-drawer-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

section {
  scroll-margin-top: 96px;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.045) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    linear-gradient(0deg, rgba(17, 16, 14, 0.035) 1px, transparent 1px) 0 0 / 100% 96px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
  padding: 18px clamp(20px, 4vw, 58px);
  background: rgba(17, 16, 14, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transition:
    border-radius 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--white);
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 11px;
  color: currentColor;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.9;
}

.brand-mark i {
  width: 1px;
  height: 56px;
  background: currentColor;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(22px, 3vw, 42px);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
}

.main-nav a,
.site-footer a {
  position: relative;
}

.main-nav a::after,
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 0.28s ease;
}

.main-nav a:hover::after,
.site-footer a:hover::after {
  right: 0;
}

.mobile-menu-toggle,
.mobile-drawer,
.mobile-drawer-scrim {
  display: none;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.24s ease, transform 0.24s ease;
}

.instagram-link:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.instagram-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.site-header.is-menu-open .mobile-menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 58px);
  color: var(--white);
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}

.drawer-close span {
  position: absolute;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-menu,
.drawer-contact {
  display: grid;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: 88vh;
  padding: 112px clamp(20px, 4vw, 58px) 0;
}

.hero-copy {
  align-self: center;
  min-width: 0;
  max-width: 670px;
  padding-bottom: 42px;
}

.hero-brand-kicker {
  margin-bottom: 14px;
  color: rgba(109, 109, 103, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.hero-bottom span,
.service-card p,
.contact-meta strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 116px);
  font-weight: 400;
  line-height: 0.92;
}

.hero-brand-title {
  display: block;
  max-width: 100%;
  width: fit-content;
  font-size: clamp(48px, 5.8vw, 88px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 520px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.58;
}

.hero-copy .hero-brand-kicker {
  max-width: none;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: normal;
}

.primary-link {
  padding: 0 22px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}

.primary-link.dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.text-link {
  color: var(--muted);
  border-bottom: 1px solid var(--concrete);
}

.hero-media {
  position: relative;
  align-self: end;
  min-width: 0;
  min-height: 58vh;
  overflow: hidden;
  background: var(--concrete);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 58vh;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(0.78) contrast(1.02);
  transition: transform 1.2s ease;
}

.hero-media:hover img {
  transform: scale(1.035);
}

.section-heading span,
.section-number {
  color: rgba(109, 109, 103, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress,
.row-progress {
  display: block;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.progress {
  margin-top: 18px;
}

.progress span,
.row-progress i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
}

.status-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-bottom span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 clamp(16px, 2.2vw, 28px);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-bottom span:last-child {
  border-right: 0;
}

.project-strip,
.services-section,
.contact-band {
  padding: clamp(62px, 7vw, 104px) clamp(20px, 4vw, 58px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(240px, 0.72fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  margin-bottom: 38px;
}

.section-heading.compact {
  grid-template-columns: minmax(260px, 1fr);
}

.services-heading {
  display: block;
  max-width: 760px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 400;
  line-height: 0.98;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.services-heading p {
  max-width: min(760px, 100%);
  margin-top: 16px;
  text-wrap: balance;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
}

.project-preview {
  position: sticky;
  top: 106px;
  min-width: 0;
  height: 620px;
  overflow: hidden;
  background: var(--paper);
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--preview-pos, 18% 50%);
  filter: saturate(0.82) contrast(1.02);
  transform: scale(1.08);
  transition: object-position 0.45s ease, transform 0.45s ease;
}

.preview-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--white);
  text-transform: uppercase;
}

.preview-caption span {
  font-size: 11px;
}

.preview-caption strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1fr) minmax(150px, 0.72fr) 128px;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 134px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, padding 0.25s ease;
}

.project-row:hover,
.project-row.is-active {
  padding-left: 18px;
  background: var(--paper);
}

.row-code,
.row-type {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.row-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1;
}

.row-progress {
  width: 100%;
}

.services-layout {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  display: grid;
  min-height: 218px;
  grid-template-rows: auto auto 1fr;
  gap: clamp(18px, 2.2vw, 30px);
  padding: clamp(20px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  transition: background 0.28s ease, transform 0.28s ease;
}

.service-card:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.service-card span {
  color: rgba(109, 109, 103, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-top: 0;
  max-width: 320px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.04;
  text-wrap: balance;
}

.service-card p {
  align-self: end;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.56;
}

.service-card-wide {
  grid-column: 1 / -1;
  min-height: 220px;
  grid-template-columns: 54px minmax(240px, 0.64fr) minmax(240px, 1fr);
  grid-template-rows: auto;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  background: var(--paper);
}

.service-card-wide h3,
.service-card-wide p {
  align-self: center;
}

.principle-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  min-height: clamp(300px, 34vw, 430px);
  padding: clamp(62px, 7vw, 104px) clamp(20px, 4vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.058) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 86px,
    var(--ink);
  border-top: 1px solid rgba(17, 16, 14, 0.18);
  border-bottom: 1px solid rgba(17, 16, 14, 0.18);
  color: var(--white);
  isolation: isolate;
}

.principle-section::before {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 58px);
  right: clamp(20px, 4vw, 58px);
  bottom: clamp(62px, 7vw, 104px);
  height: 1px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.2);
}

.principle-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  opacity: 0.72;
  animation: principle-scan 8s ease-in-out infinite;
}

.principle-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(44px, 8vw, 116px);
}

.principle-kicker,
.principle-detail span,
.principle-tags small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.principle-section blockquote {
  max-width: 100%;
  margin: 0;
}

.principle-section blockquote p {
  font-family: var(--serif);
  font-size: clamp(56px, 8.55vw, 116px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  max-width: 100%;
}

.principle-section cite {
  display: block;
  margin-top: clamp(18px, 2.2vw, 30px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.principle-detail {
  display: grid;
  align-content: end;
  min-width: 0;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.principle-detail p {
  max-width: 430px;
  margin-top: clamp(22px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.58;
  text-wrap: pretty;
}

.principle-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(26px, 3vw, 42px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-tags small {
  display: flex;
  align-items: center;
  min-height: 62px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h3 {
  margin-top: 52px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.contact-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(480px, 1fr);
  gap: clamp(22px, 3.2vw, 46px);
  align-items: start;
  margin: 0;
  padding-block: clamp(46px, 5.4vw, 82px);
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.contact-band::before {
  display: none;
}

.contact-intro {
  padding-right: clamp(8px, 2vw, 28px);
}

.contact-intro p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-transform: uppercase;
}

.contact-band h2 {
  max-width: 620px;
  margin-top: clamp(18px, 3vw, 38px);
  font-size: clamp(42px, 4.8vw, 76px);
  text-wrap: balance;
}

.contact-panel {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-action {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 152px;
  padding: clamp(18px, 2vw, 24px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.contact-action.dark {
  background: var(--ink);
  color: var(--white);
}

.contact-action:hover {
  background: var(--concrete);
  transform: translateY(-2px);
}

.contact-action.dark:hover {
  background: var(--graphite);
}

.contact-action:active {
  transform: scale(0.98);
}

.contact-action small,
.contact-meta small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-action.dark small,
.contact-action.dark span {
  color: rgba(255, 255, 255, 0.58);
}

.contact-action strong {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

.contact-action span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-meta p,
.contact-meta address {
  display: grid;
  gap: 18px;
  min-height: 116px;
  margin: 0;
  padding: clamp(18px, 2vw, 24px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-style: normal;
}

.contact-meta strong {
  align-self: end;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-email {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.045) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--ink);
  color: var(--white);
}

.contact-email small {
  color: rgba(255, 255, 255, 0.62);
}

.contact-email a {
  align-self: end;
  min-width: 0;
}

.contact-meta .contact-email strong {
  display: block;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 42px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 4vw, 58px) 28px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.whatsapp-widget {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.whatsapp-preview,
.whatsapp-toggle {
  pointer-events: auto;
}

.whatsapp-preview {
  position: relative;
  width: min(342px, calc(100vw - 32px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 16, 14, 0.16);
  box-shadow: 0 22px 60px rgba(17, 16, 14, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.whatsapp-preview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 72px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0.42);
  transform-origin: left;
  transition: transform 0.38s ease;
}

.whatsapp-widget.is-open .whatsapp-preview {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.whatsapp-widget.is-open .whatsapp-preview::before {
  transform: scaleX(1);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
}

.chat-close:hover {
  color: var(--ink);
}

.chat-message {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--ink);
}

.chat-message small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.chat-message p {
  margin-top: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.chat-send,
.whatsapp-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.chat-send {
  width: 100%;
  margin-top: 18px;
  background: var(--ink);
  color: var(--white);
}

.chat-send:hover,
.whatsapp-toggle:hover {
  transform: translateY(-2px);
}

.whatsapp-toggle {
  gap: 10px;
  min-width: 190px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(17, 16, 14, 0.12);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.whatsapp-toggle:hover,
.whatsapp-widget.is-open .whatsapp-toggle {
  background: var(--ink);
  color: var(--white);
}

.toggle-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes scan {
  0%,
  100% {
    left: 0;
  }
  50% {
    left: 78%;
  }
}

@keyframes principle-scan {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.22;
  }

  45%,
  55% {
    opacity: 0.78;
  }

  50% {
    transform: translateX(56vw);
  }
}

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

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: block;
    background: rgba(17, 16, 14, 0.36);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 22;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(420px, calc(100vw - 28px));
    height: 100svh;
    min-height: 100svh;
    padding: 30px clamp(22px, 4vw, 34px);
    background: rgba(17, 16, 14, 0.985);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.34);
    transition: opacity 0.28s ease, transform 0.32s ease, visibility 0.32s ease;
  }

  .drawer-brand .brand-mark {
    font-size: 40px;
  }

  .drawer-brand .brand-mark i {
    height: 48px;
  }

  .drawer-brand .brand-name {
    font-size: 17px;
    letter-spacing: 0.28em;
  }

  .drawer-menu {
    align-content: start;
    justify-self: start;
    width: min(260px, 74%);
    gap: 0;
    padding-top: clamp(34px, 8vh, 72px);
  }

  .drawer-menu a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--serif);
    font-size: clamp(34px, 6.4vw, 44px);
    line-height: 1;
  }

  .drawer-contact {
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .drawer-contact small {
    color: rgba(255, 255, 255, 0.44);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .drawer-contact a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.is-drawer-open .mobile-drawer-scrim,
  body.is-drawer-open .mobile-drawer,
  .site-header.is-menu-open ~ .mobile-drawer-scrim,
  .site-header.is-menu-open ~ .mobile-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .hero,
  .projects-layout,
  .services-layout {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-media {
    min-height: 42vh;
  }

  .hero-media img {
    min-height: 42vh;
  }

  .project-preview {
    position: relative;
    top: auto;
    height: 520px;
  }

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

  .principle-section {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .principle-detail {
    padding-top: 0;
    padding-left: 0;
    border-top: 0;
    border-left: 0;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-column: auto;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    min-height: 86vh;
  }

  .hero-media,
  .hero-media img {
    min-height: 54vh;
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-gap-xs: 8px;
    --mobile-gap-sm: 12px;
    --mobile-gap-md: 16px;
    --mobile-gap-lg: 24px;
    --mobile-gap-xl: 32px;
    --mobile-section-y: 48px;
    --mobile-page-x: 16px;
  }

  .site-header {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 14px;
    background: rgba(17, 16, 14, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
  }

  .site-header.is-scrolled {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background: rgba(17, 16, 14, 0.985);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(17, 16, 14, 0.22);
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    gap: 13px;
    min-width: 0;
    max-width: calc(100vw - 128px);
    padding: 0;
    color: var(--white);
  }

  .brand-mark {
    font-size: 36px;
    gap: 9px;
    flex: 0 0 auto;
  }

  .brand-mark i {
    height: 44px;
    width: 1px;
  }

  .brand-name {
    max-width: min(176px, calc(100vw - 190px));
    overflow: hidden;
    color: var(--white);
    font-size: clamp(12px, 3.45vw, 15px);
    letter-spacing: clamp(0.12em, 0.55vw, 0.2em);
  }

  .header-actions {
    grid-column: 2;
    gap: 4px;
  }

  .instagram-link {
    width: 38px;
    height: 42px;
  }

  .instagram-link svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-drawer {
    width: min(360px, calc(100vw - 22px));
    padding: 26px 22px 24px;
    border-bottom-left-radius: 10px;
  }

  .drawer-brand {
    gap: 13px;
  }

  .drawer-brand .brand-mark {
    font-size: 34px;
  }

  .drawer-brand .brand-mark i {
    height: 42px;
  }

  .drawer-brand .brand-name {
    max-width: none;
    font-size: 14px;
    letter-spacing: 0.22em;
  }

  .drawer-menu {
    width: min(224px, 72%);
    padding-top: clamp(28px, 7vh, 54px);
  }

  .drawer-menu a {
    padding: 13px 0;
    font-size: clamp(29px, 8.2vw, 36px);
  }

  .drawer-contact a {
    font-size: 12px;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    min-height: auto;
    gap: var(--mobile-gap-lg);
    padding: 104px var(--mobile-page-x) 0;
  }

  section {
    scroll-margin-top: 92px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-brand-title {
    max-width: none;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(35px, 10.2vw, 44px);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-copy .hero-brand-kicker {
    margin-bottom: var(--mobile-gap-sm);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-align: center;
  }

  .preview-caption,
  .site-footer {
    flex-direction: column;
  }

  .hero-copy p {
    max-width: 100%;
    margin-right: auto;
    font-size: 14px;
    margin-top: var(--mobile-gap-md);
    margin-left: auto;
    line-height: 1.5;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap-sm);
    margin-top: var(--mobile-gap-lg);
  }

  .primary-link {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .text-link {
    justify-content: center;
    width: 100%;
  }

  .hero-media {
    min-height: clamp(270px, 40svh, 400px);
    align-self: stretch;
  }

  .hero-media img {
    min-height: clamp(270px, 40svh, 400px);
    object-position: 58% 46%;
  }

  .progress {
    margin-top: var(--mobile-gap-md);
  }

  .hero-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-bottom span {
    flex: 1 1 min(46%, 210px);
    justify-content: center;
    min-height: 52px;
    border-right: 1px solid var(--line);
    text-align: center;
  }

  .hero-bottom span:nth-child(2n),
  .hero-bottom span:last-child {
    border-right: 0;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    margin-bottom: var(--mobile-gap-lg);
    text-align: center;
  }

  .section-heading p {
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
  }

  .services-heading {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .services-heading p {
    margin-top: var(--mobile-gap-md);
  }

  .project-strip,
  .services-section,
  .contact-band {
    padding: var(--mobile-section-y) var(--mobile-page-x);
  }

  .principle-section {
    gap: var(--mobile-gap-xl);
    padding: var(--mobile-section-y) var(--mobile-page-x);
    text-align: center;
  }

  .principle-section::before {
    left: var(--mobile-page-x);
    right: var(--mobile-page-x);
    bottom: var(--mobile-section-y);
  }

  .principle-section blockquote p {
    font-size: clamp(34px, 10.8vw, 46px);
    line-height: 0.96;
  }

  .principle-section cite {
    margin-top: var(--mobile-gap-md);
    font-size: 10px;
    text-align: center;
  }

  .principle-detail p {
    max-width: 100%;
    margin-right: auto;
    font-size: 15px;
    margin-left: auto;
    line-height: 1.52;
    text-align: center;
  }

  .principle-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--mobile-gap-lg);
  }

  .principle-tags small {
    min-height: 48px;
    padding: var(--mobile-gap-sm) var(--mobile-gap-xs);
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .project-preview {
    height: 420px;
  }

  .project-row {
    grid-template-columns: 52px 1fr;
    gap: var(--mobile-gap-sm);
    min-height: 128px;
  }

  .service-grid,
  .service-card-wide {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-wide {
    gap: var(--mobile-gap-md);
    min-height: 188px;
    justify-items: center;
    text-align: center;
  }

  .service-card-wide {
    grid-column: auto;
    gap: var(--mobile-gap-md);
    align-items: start;
  }

  .service-card h3 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .service-card p {
    max-width: 390px;
  }

  .row-type,
  .row-progress {
    grid-column: 2;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-band::before {
    display: none;
  }

  h3 {
    margin-top: var(--mobile-gap-xl);
  }

  .contact-band {
    margin: 0;
  }

  .contact-intro {
    padding-right: 0;
    text-align: center;
  }

  .contact-intro p {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .contact-band h2 {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(38px, 11vw, 52px);
    text-align: center;
  }

  .contact-panel {
    grid-column: auto;
  }

  .contact-actions,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .contact-action,
  .contact-meta p,
  .contact-meta address {
    gap: var(--mobile-gap-md);
    justify-items: center;
    min-height: 108px;
    padding: var(--mobile-gap-lg) var(--mobile-gap-md);
    text-align: center;
  }

  .contact-action {
    min-height: 128px;
  }

  .contact-action strong {
    font-size: 31px;
  }

  .contact-meta .contact-email strong {
    font-size: clamp(27px, 8.8vw, 38px);
  }

  .site-footer {
    align-items: center;
    padding: 24px 16px 34px;
    text-align: center;
  }

  .whatsapp-widget {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .whatsapp-preview {
    width: 100%;
    padding: 16px;
  }

  .whatsapp-toggle {
    justify-self: end;
    min-width: 164px;
    min-height: 44px;
    padding: 0 14px;
  }

  .chat-message p {
    font-size: 14px;
  }
}
