:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --text: #20242a;
  --muted: #656b73;
  --blue: #173b5f;
  --blue-light: #285b86;
  --gold: #b58a43;
  --gold-light: #d6b36e;
  --line: #e2e1dc;
  --shadow: 0 22px 60px rgba(25, 35, 44, 0.11);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(226, 225, 220, 0.84);
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
  width: 260px;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #343941;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 180ms ease;
}

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

.nav-contact {
  padding: 11px 18px !important;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  transition: background 180ms ease, color 180ms ease;
}

.nav-contact:hover {
  background: var(--blue);
  color: #fff;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 98px;
}

.hero::before {
  position: absolute;
  top: -220px;
  right: -100px;
  width: 650px;
  height: 650px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 138, 67, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 70px;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  max-width: 690px;
  margin-bottom: 25px;
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 740;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 33px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(23, 59, 95, 0.2);
  color: #fff;
}

.button-primary:hover {
  background: #0e2f50;
  box-shadow: 0 16px 32px rgba(23, 59, 95, 0.27);
}

.button-secondary {
  border-color: #c7c8c9;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: #fff;
}

.button-small {
  min-height: 46px;
  padding: 10px 19px;
}

.hero-points {
  display: flex;
  margin: 35px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 13px 27px;
  color: #454b52;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 600px;
}

.hero-image {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-main {
  top: 15px;
  right: 24px;
  width: 58%;
  height: 535px;
}

.hero-image-small {
  left: 0;
  width: 45%;
  height: 228px;
}

.hero-image-top {
  top: 65px;
  transform: rotate(-2deg);
}

.hero-image-bottom {
  bottom: 10px;
  transform: rotate(2deg);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 28px;
  display: grid;
  min-width: 210px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(23, 59, 95, 0.92);
  box-shadow: 0 14px 35px rgba(23, 59, 95, 0.26);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-badge span {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: 16px;
}

.section {
  padding: 105px 0;
}

.section-heading {
  margin-bottom: 45px;
}

.section-heading-center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-center .eyebrow {
  justify-content: center;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-row h2,
.section-heading-row .eyebrow {
  margin-bottom: 0;
}

.section-heading-row .eyebrow {
  margin-bottom: 15px;
}

.main-directions {
  background: var(--surface);
}

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

.direction-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 540px;
  padding: 40px;
  align-items: end;
  border-radius: var(--radius-lg);
  isolation: isolate;
  color: #fff;
}

.direction-card > img,
.direction-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.direction-card > img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.direction-card:hover > img {
  transform: scale(1.035);
}

.direction-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 20, 28, 0.03) 20%, rgba(12, 20, 28, 0.9) 100%);
}

.direction-content {
  max-width: 520px;
}

.direction-number {
  position: absolute;
  top: 25px;
  right: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.direction-kicker {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direction-card h3 {
  max-width: 520px;
  margin-bottom: 15px;
  font-size: clamp(29px, 3vw, 41px);
  letter-spacing: -0.03em;
}

.direction-card p:not(.direction-kicker) {
  max-width: 480px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.text-link span {
  color: var(--gold-light);
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.portfolio-section {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #d9d7d0;
  isolation: isolate;
}

.work-card img,
.work-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-card img {
  object-fit: cover;
  transition: transform 450ms ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-shade {
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 14, 20, 0.8));
}

.work-meta {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  color: #fff;
}

.work-meta small {
  margin-bottom: 4px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-meta strong {
  font-size: 21px;
}

.editorial-section {
  background: var(--surface);
}

.editorial-heading {
  margin-bottom: 52px;
}

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

.column-heading {
  display: flex;
  margin-bottom: 25px;
  padding-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.column-heading h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.column-heading > a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.news-feature {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: 175px 1fr;
  gap: 22px;
}

.news-image,
.article-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  align-self: start;
  border-radius: 12px;
  background: var(--surface-soft);
}

.news-image img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.news-image:hover img,
.article-image:hover img {
  transform: scale(1.04);
}

.news-feature time,
.news-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.news-feature h4 {
  margin: 8px 0 10px;
  font-size: 20px;
}

.news-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-row {
  display: grid;
  padding: 18px 0;
  align-items: center;
  border-top: 1px solid var(--line);
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.news-row-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  background: var(--surface-soft);
}

.news-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.news-row-image:hover img {
  transform: scale(1.04);
}

.news-row h4 {
  margin: 6px 0 0;
  font-size: 17px;
}

.news-row a:hover,
.article-card h4 a:hover,
.news-feature h4 a:hover {
  color: var(--blue-light);
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 22px;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h4 {
  margin: 0 0 9px;
  font-size: 20px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-cta {
  padding: 78px 0;
  background: var(--blue);
  color: #fff;
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-cta h2 {
  margin-bottom: 12px;
}

.contact-cta p:not(.eyebrow) {
  max-width: 730px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.eyebrow-light {
  color: var(--gold-light);
}

.button-gold {
  flex: 0 0 auto;
  background: var(--gold-light);
  color: #162433;
}

.button-gold:hover {
  background: #e0c181;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.site-footer {
  padding: 68px 0 25px;
  background: #131920;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  display: grid;
  padding-bottom: 48px;
  grid-template-columns: minmax(280px, 1.8fr) repeat(3, 1fr);
  gap: 50px;
}

.footer-brand img {
  width: 240px;
  height: auto;
}

.footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  font-size: 14px;
}

.footer-grid h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 14px;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid > div:not(.footer-brand) a {
  margin-bottom: 9px;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  padding-top: 22px;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* Internal pages */
.page-hero {
  padding: 78px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 15%, rgba(181, 138, 67, 0.13), transparent 32%),
    linear-gradient(180deg, #fbfaf7, var(--bg));
}

.page-hero .breadcrumbs {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs span[aria-hidden="true"] {
  color: #a7aaad;
}

.page-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 60px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(43px, 5.3vw, 68px);
}

.page-hero-copy > p:last-child {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.page-hero-stat {
  display: grid;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.page-hero-stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 27px;
  line-height: 1.1;
}

.page-hero-stat span {
  color: var(--muted);
  font-size: 12px;
}

.listing-section {
  padding: 78px 0 110px;
  background: var(--surface);
}

.filter-bar {
  display: flex;
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #454b52;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 18px;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.catalog-card:hover .catalog-card-image img {
  transform: scale(1.04);
}

.catalog-card-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.catalog-card h2,
.catalog-card h3 {
  margin-bottom: 6px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pager {
  display: flex;
  margin-top: 55px;
  justify-content: center;
  gap: 8px;
}

.pager a,
.pager span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.pager span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.materials-intro {
  display: grid;
  margin-bottom: 54px;
  padding-bottom: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.materials-intro h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.materials-intro p {
  margin: 0;
  color: var(--muted);
}

.material-card {
  padding: 14px 14px 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(25, 35, 44, 0.1);
}

.material-card .catalog-card-image {
  margin-bottom: 18px;
}

.material-card h3,
.material-card p {
  margin-right: 6px;
  margin-left: 6px;
}

.material-meta {
  display: flex;
  margin: 14px 6px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.material-card h3 a:hover,
.material-meta:hover {
  color: var(--gold);
}

.material-detail-hero {
  padding: 42px 0 82px;
  background: var(--surface);
}

.material-detail-grid {
  display: grid;
  margin-top: 45px;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.7fr);
  gap: 80px;
}

.material-detail-copy h1 {
  margin-bottom: 22px;
}

.material-detail-lead {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 19px;
}

.material-detail-image {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.material-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-detail-content {
  padding: 92px 0 105px;
}

.material-info-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 75px;
}

.material-info-main {
  max-width: 760px;
}

.material-info-main h2,
.material-uses h2 {
  font-size: 32px;
}

.material-info-main h2:not(:first-child) {
  margin-top: 48px;
}

.material-catalog-body {
  margin-top: 48px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.material-info-main > p {
  margin: 0;
  color: var(--muted);
}

.material-note {
  margin-top: 48px;
  padding: 23px 25px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #f0ede5;
}

.material-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.material-uses {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.material-uses ul {
  display: grid;
  margin: 0 0 28px;
  padding: 0;
  gap: 0;
  list-style: none;
}

.material-uses li {
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 5px 25px, var(--gold) 0 3px, transparent 4px);
  color: var(--muted);
  font-size: 14px;
}

.material-uses > a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.material-contact {
  padding: 72px 0;
  background: var(--blue);
  color: #fff;
}

.material-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.material-contact h2 {
  margin-bottom: 10px;
}

.material-contact p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.work-detail {
  padding: 72px 0 110px;
  background: var(--surface);
}

.work-detail-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 60px;
}

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

.work-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  cursor: zoom-in;
}

.work-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.work-gallery a:hover img {
  transform: scale(1.035);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 70px 92px 44px;
  align-items: center;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 22px;
  background: rgba(7, 11, 17, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 145px);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.45);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 34px;
  line-height: 1;
}

.lightbox-arrow {
  font-size: 43px;
  line-height: 1;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 72px 12px 24px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
  }

  .lightbox-close {
    top: 13px;
    right: 13px;
  }

  .lightbox-close,
  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }

  .lightbox-image {
    max-height: calc(100vh - 130px);
  }
}

.work-info {
  position: sticky;
  top: 140px;
}

.work-info h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4vw, 54px);
}

.work-info > p {
  color: var(--muted);
}

.detail-list {
  margin: 30px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.detail-list li {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
}

.detail-list span {
  color: var(--muted);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
}

.publication-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.publication-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface-soft);
}

.publication-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.publication-card:hover img {
  transform: scale(1.035);
}

.publication-card-content {
  padding: 23px;
}

.publication-card time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.publication-card h2,
.publication-card h3 {
  margin: 9px 0 11px;
  font-size: 21px;
}

.publication-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-page {
  padding: 72px 0 110px;
  background: var(--surface);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  justify-content: center;
  gap: 80px;
}

.article-header time,
.article-header .tag {
  margin-bottom: 17px;
}

.article-header h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 62px);
}

.article-lead {
  color: var(--muted);
  font-size: 20px;
}

.article-cover {
  width: 100%;
  margin: 35px 0 38px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.prose {
  color: #333940;
}

.prose h2 {
  margin: 45px 0 16px;
  font-size: 31px;
}

.prose h3 {
  margin: 32px 0 12px;
  font-size: 23px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 20px;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--surface-soft);
  color: #4c535a;
}

.prose li[data-list="bullet"] {
  list-style-type: disc;
}

.prose li[data-list="ordered"] {
  list-style-type: decimal;
}

.prose iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 30px 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #111;
}

.article-aside {
  position: sticky;
  top: 135px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.article-aside h2 {
  margin-bottom: 17px;
  font-size: 18px;
}

.article-aside a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.contact-page {
  padding: 76px 0 110px;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  gap: 75px;
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-copy > p {
  color: var(--muted);
}

.contact-options {
  display: grid;
  margin-top: 35px;
  gap: 11px;
}

.contact-option {
  display: flex;
  padding: 17px 19px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 750;
}

.contact-option span {
  color: var(--gold);
}

.contact-form {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  display: grid;
  margin-bottom: 22px;
  padding: 15px 17px;
  border-radius: 11px;
  gap: 2px;
  font-size: 14px;
}

.form-message span {
  font-size: 13px;
}

.form-message-success {
  border: 1px solid #c7dfcd;
  background: #e8f4eb;
  color: #285b35;
}

.form-message-error {
  border: 1px solid #ebcaca;
  background: #f8e8e8;
  color: #7b2525;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: #444a51;
  font-size: 12px;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ced0d1;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.empty-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: #f2efe8;
  color: var(--muted);
  font-size: 13px;
}

.error-page {
  display: grid;
  min-height: 610px;
  padding: 85px 0 105px;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
}

.error-page-inner {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 70px;
}

.error-code {
  color: #e6e2d9;
  font-size: clamp(150px, 20vw, 280px);
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.78;
  user-select: none;
}

.error-copy {
  position: relative;
  z-index: 1;
}

.error-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 68px);
}

.error-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.error-actions {
  display: flex;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-link {
  margin-left: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.error-link:hover {
  color: var(--gold);
}

.main-nav a[aria-current="page"]:not(.nav-contact) {
  color: var(--blue);
}

.main-nav a[aria-current="page"]:not(.nav-contact)::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .work-info {
    position: static;
    order: -1;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .article-aside {
    position: static;
  }

  .material-detail-grid,
  .material-info-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .material-detail-image {
    width: min(100%, 620px);
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 55px 0;
  }

  .page-hero-grid,
  .materials-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: 1;
  }

  .material-detail-hero {
    padding: 34px 0 60px;
  }

  .material-detail-grid {
    margin-top: 32px;
  }

  .material-detail-content {
    padding: 65px 0 75px;
  }

  .material-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-page {
    min-height: 520px;
    padding: 60px 0 80px;
  }

  .error-page-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .error-code {
    font-size: clamp(130px, 45vw, 210px);
  }
}

@media (max-width: 480px) {
  .listing-section,
  .work-detail,
  .article-page,
  .contact-page {
    padding: 58px 0 78px;
  }

  .catalog-grid {
    gap: 24px 12px;
  }

  .catalog-card h2,
  .catalog-card h3 {
    font-size: 16px;
  }

  .catalog-card p {
    font-size: 12px;
  }

  .material-card {
    padding: 9px 9px 16px;
    border-radius: 15px;
  }

  .publication-grid,
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .publication-card h2,
  .publication-card h3 {
    font-size: 19px;
  }

  .article-layout {
    gap: 45px;
  }

  .contact-form {
    padding: 22px;
  }

  .material-info-main h2,
  .material-uses h2 {
    font-size: 27px;
  }

  .material-uses {
    padding: 23px;
  }
}

@media (max-width: 1120px) {
  .brand {
    width: 220px;
  }

  .main-nav {
    gap: 17px;
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
    gap: 35px;
  }

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

  .hero-image-main {
    height: 470px;
  }

  .hero-image-small {
    height: 195px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 90px;
  }

  .brand {
    width: 215px;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle-lines::before {
    top: -7px;
  }

  .menu-toggle-lines::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    display: flex;
    width: min(88vw, 430px);
    height: 100dvh;
    padding: 120px 36px 40px;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    transform: translateX(105%);
    background: var(--surface);
    box-shadow: -18px 0 50px rgba(20, 28, 36, 0.14);
    font-size: 18px;
    transition: transform 250ms ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-contact {
    margin-top: 16px;
    padding: 13px 20px !important;
    align-self: flex-start;
    border-bottom: 1px solid var(--blue) !important;
    font-size: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

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

  .hero-image-main {
    width: 61%;
    height: 535px;
  }

  .hero-image-small {
    width: 43%;
    height: 225px;
  }

  .direction-card {
    min-height: 480px;
    padding: 30px;
  }

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

  .editorial-grid {
    gap: 42px;
  }

  .news-feature,
  .article-card {
    grid-template-columns: 145px 1fr;
  }

  .contact-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

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

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 78px;
  }

  .brand {
    width: 180px;
  }

  .hero {
    padding: 50px 0 70px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-image-main {
    right: 0;
    width: 72%;
    height: 435px;
  }

  .hero-image-small {
    width: 38%;
    height: 165px;
  }

  .hero-image-top {
    top: 48px;
  }

  .hero-image-bottom {
    bottom: 6px;
  }

  .hero-badge {
    right: 0;
    bottom: 20px;
    min-width: 175px;
    padding: 12px 15px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 510px;
  }

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

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 11px;
  }

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

  .hero-image {
    border-width: 4px;
    border-radius: 16px;
  }

  .hero-image-main {
    height: 365px;
  }

  .hero-image-small {
    height: 135px;
  }

  .hero-badge {
    bottom: 8px;
  }

  .hero-badge strong {
    font-size: 14px;
  }

  .direction-card {
    min-height: 470px;
    padding: 25px;
  }

  .direction-number {
    top: 20px;
    right: 22px;
  }

  .portfolio-grid {
    gap: 10px;
  }

  .work-meta {
    right: 14px;
    bottom: 13px;
    left: 14px;
  }

  .work-meta strong {
    font-size: 16px;
  }

  .news-feature,
  .article-card {
    grid-template-columns: 1fr;
  }

  .news-image,
  .article-image {
    aspect-ratio: 16 / 10;
  }

  .news-row {
    grid-template-columns: 85px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
