/* APONTI public website.
   Corporate identity of October 2026 (see the brand manual): matt gold on the tones of a
   house's materials, Cormorant Garamond for headings and Jost for text, and a golden type
   scale (16 → 26 → 42 → 68 px). No framework, no inline styles (the Content-Security-Policy
   forbids them). */

:root {
  /* Brand colours. Gold is always flat: no gradients, glows or shadows on it. */
  --gold: #b08d57;        /* oro áureo: symbol, rules, details (never text on light) */
  --gold-deep: #7d5f2e;   /* oro profundo: gold text on light backgrounds */
  --graphite: #2a2826;    /* grafito: text and dark backgrounds */
  --stone: #d8cec0;       /* piedra: lines, separators, blocks */
  --bone: #f5f0e8;        /* hueso: main background */

  /* Derived tones (mixes of the brand colours). */
  --sand: #ebe4d9;        /* a light block between bone and stone */
  --text: #3d3a36;        /* body text: graphite, a touch softer */
  --muted: #6d665e;       /* secondary text (still 5:1 on bone) */
  --on-dark: #e9e2d6;     /* body text on graphite */
  --graphite-deep: #201e1c;

  --header-height: 92px;
  --container: 1140px;
  --gutter: 30px;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;

  /* Golden type scale. */
  --step-0: 16px;
  --step-1: 26px;
  --step-2: 42px;
  --step-3: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--stone);
  color: var(--graphite);
}

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

a {
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--graphite);
}

h1 em, h2 em, h3 em {
  color: var(--gold-deep);
}

p {
  margin: 0 0 1em;
}

strong, b {
  font-weight: 500;
}

.d-none,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * 20px);
  margin: 0 auto;
  padding: 0 20px;
}

.uppercase {
  text-transform: uppercase;
}

/* Small spaced capitals, as in the logo's tagline. */
.label,
.post__info,
.page-title__sub,
.composition-categories,
.widget__title,
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* --- Header ------------------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: rgba(245, 240, 232, 0.97);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--stone);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.site-header__logo img {
  width: 172px;
  height: auto;
}

.site-header__logo .logo--light {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__list {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  border-bottom: 1px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--graphite);
  border-bottom-color: var(--gold);
}

/* Transparent over the home page's photo until the page scrolls (or a menu opens). */
.site-header--overlay:not(.is-scrolled):not(:has(.is-open, .site-search:not(.d-none))) {
  background: transparent;
}

.site-header--overlay:not(.is-scrolled):not(:has(.is-open, .site-search:not(.d-none))) .logo--dark {
  display: none;
}

.site-header--overlay:not(.is-scrolled):not(:has(.is-open, .site-search:not(.d-none))) .logo--light {
  display: block;
}

.site-header--overlay:not(.is-scrolled):not(:has(.is-open, .site-search:not(.d-none))) .site-nav__list a,
.site-header--overlay:not(.is-scrolled):not(:has(.is-open, .site-search:not(.d-none))) .icon-button {
  color: var(--bone);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--graphite);
  font-size: 19px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--gold-deep);
}

.site-nav__toggle {
  display: none;
}

.site-search {
  position: absolute;
  inset: 100% 0 auto;
  padding: 24px 40px;
  background: var(--bone);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.site-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--graphite);
  padding: 10px 0;
  font: inherit;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--graphite);
  background: transparent;
  outline: none;
}

main {
  padding-top: var(--header-height);
}

main.no-header-offset {
  padding-top: 0;
}

/* --- Buttons and forms ------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn--gray {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--bone);
}

.btn--gray:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--bone);
}

.btn--outline-light {
  border-color: rgba(245, 240, 232, 0.8);
  color: var(--bone);
  background: transparent;
}

.btn--outline-light:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--graphite);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.field {
  margin-bottom: 28px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--graphite);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}

.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

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

.form-feedback {
  margin-top: 20px;
  padding: 15px 20px;
  border-left: 2px solid var(--gold);
  background: var(--sand);
  color: var(--graphite);
}

.form-feedback--error {
  border-left-color: #9b3b2f;
  color: #7a2e25;
}

.form-feedback--ok {
  border-left-color: #4d6b43;
  color: #3c5534;
}

.form-feedback strong {
  display: block;
  color: inherit;
}

.recaptcha-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}

.recaptcha-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* --- Sections ---------------------------------------------------------------------------- */

.section {
  padding: 110px 0 40px;
}

.section--tight {
  padding: 50px 0;
}

.band {
  padding: 70px 0;
  background: var(--sand);
}

.band__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.band__title {
  margin: 0 0 6px;
  font-size: var(--step-2);
}

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

.divider {
  border: 0;
  border-top: 1px solid var(--stone);
  margin: 0;
}

/* Heading with a short gold rule above it. */
.section-title {
  margin: 0 0 32px;
  font-size: var(--step-2);
  color: var(--graphite);
}

.section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 22px;
  background: var(--gold);
}

.section-title--light {
  color: var(--bone);
}

.section-title--light strong {
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
}

/* Posts (three columns with an image) */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--gutter);
}

.post {
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

.post__image {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  margin-bottom: 26px;
}

.post__info {
  margin-bottom: 8px;
}

.post__title {
  margin: 0 0 14px;
  font-size: var(--step-1);
}

/* Features grid (icon + title + text) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px var(--gutter);
}

.feature {
  padding-top: 26px;
  border-top: 1px solid var(--stone);
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: var(--step-1);
}

.feature__title .icon {
  font-size: 24px;
  color: var(--gold);
}

.feature p {
  margin: 0;
}

/* Dark "why us" band */
.whyus {
  padding: 90px 0;
  background: var(--graphite);
  color: var(--on-dark);
  text-align: center;
}

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

.whyus .icon {
  font-size: 34px;
  margin: 0 auto 24px;
  display: block;
  color: var(--gold);
}

.whyus__text {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
}

/* Logistics + contact */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: calc(var(--container) + 2 * 20px);
  margin: 0 auto;
}

.split > * {
  padding: 100px 60px 90px;
}

.split > * + * {
  border-left: 1px solid var(--stone);
}

.provinces {
  columns: 4;
  column-gap: 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 28px;
}

.provinces-note {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* Contact info band */
.contact-info {
  padding: 70px 0;
  background: var(--sand);
}

.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.contact-info__item {
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.contact-info__item > .icon {
  font-size: 28px;
  align-self: center;
  color: var(--gold);
}

.contact-info__text {
  padding: 10px 0 10px 26px;
  border-left: 1px solid var(--stone);
  min-width: 0;
}

.contact-info__text h3 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.contact-info__text p {
  margin: 0;
  overflow-wrap: anywhere;
}

/* --- Hero (home page) -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--graphite);
  color: var(--bone);
  text-align: center;
}

.hero__image,
.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--graphite);
  opacity: var(--tint, 0.25);
  pointer-events: none;
}

/* The home page always darkens its photo enough for the light logo. */
.hero.tint::after {
  opacity: max(var(--tint, 0.25), 0.58);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero__title {
  margin: 0 0 36px;
}

.hero__title img {
  width: 340px;
  height: auto;
  margin: 0 auto;
}

.hero__subtitle {
  margin: 0 0 44px;
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
}

.hero__subtitle span + span::before {
  content: "·";
  margin: 0 16px;
  color: var(--gold);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  color: var(--bone);
  font-size: 22px;
}

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

/* --- Carousel ---------------------------------------------------------------------------- */

.carousel {
  position: relative;
  height: 463px;
  overflow: hidden;
  background: var(--graphite);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed, 600ms) ease, visibility 0s linear var(--speed, 600ms);
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--speed, 600ms) ease;
}

.carousel__caption {
  position: relative;
  z-index: 1;
  margin: 0 20px;
  font: 500 var(--step-3)/1.1 var(--font-display);
  text-align: center;
  color: var(--bone);
}

.carousel__caption::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--gold);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 240, 232, 0.5);
  background: transparent;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
}

.carousel__arrow:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--graphite);
}

.carousel--dark-arrows .carousel__arrow {
  color: var(--graphite);
  border-color: var(--graphite);
  background: rgba(245, 240, 232, 0.7);
}

.carousel__arrow--prev {
  left: 20px;
}

.carousel__arrow--next {
  right: 20px;
}

.carousel__dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel__dots button {
  width: 24px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(245, 240, 232, 0.5);
  cursor: pointer;
}

.carousel__dots button[aria-current="true"] {
  background: var(--gold);
}

/* Darkness of image overlays, set from the admin (0 = none, 100 = graphite). */
.tint-0 { --tint: 0; } .tint-5 { --tint: 0.05; } .tint-10 { --tint: 0.1; }
.tint-15 { --tint: 0.15; } .tint-20 { --tint: 0.2; } .tint-25 { --tint: 0.25; }
.tint-30 { --tint: 0.3; } .tint-35 { --tint: 0.35; } .tint-40 { --tint: 0.4; }
.tint-45 { --tint: 0.45; } .tint-50 { --tint: 0.5; } .tint-55 { --tint: 0.55; }
.tint-60 { --tint: 0.6; } .tint-65 { --tint: 0.65; } .tint-70 { --tint: 0.7; }
.tint-75 { --tint: 0.75; } .tint-80 { --tint: 0.8; } .tint-85 { --tint: 0.85; }
.tint-90 { --tint: 0.9; } .tint-95 { --tint: 0.95; } .tint-100 { --tint: 1; }

/* --- Page titles and breadcrumbs ----------------------------------------------------------- */

.page-title {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 260px;
  padding: 60px 0;
  background: var(--sand);
  overflow: hidden;
}

.page-title--image {
  min-height: 300px;
  background: var(--graphite);
  color: var(--bone);
}

.page-title--small {
  min-height: 0;
  padding: 50px 0;
}

.page-title__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

.page-title__name {
  margin: 0;
  font-size: var(--step-2);
}

.page-title--image .page-title__name,
.page-title--image .breadcrumbs,
.page-title--image .breadcrumbs a {
  color: var(--bone);
}

.page-title--image .page-title__sub {
  color: var(--gold);
}

.page-title__sub {
  margin: 0 0 10px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs-bar {
  padding-top: 28px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 12px;
  color: var(--gold);
}

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

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

.breadcrumbs [aria-current="page"] {
  color: var(--graphite);
}

.page-title--image .breadcrumbs [aria-current="page"] {
  color: var(--bone);
  font-weight: 500;
}

/* --- Composition and category grids ---------------------------------------------------------- */

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ideas-grid--gutter {
  gap: 6px;
  padding: 6px 0;
}

.ideas-grid__intro {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 20px;
  text-align: center;
}

.ideas-grid__intro p {
  margin: 0;
  font: 500 var(--step-2)/1.15 var(--font-display);
  color: var(--graphite);
}

.ideas-grid__intro p::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--gold);
}

.tile {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--graphite);
}

.tile a {
  display: block;
  height: 100%;
  color: var(--bone);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  background: linear-gradient(transparent 45%, rgba(42, 40, 38, 0.75));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile__overlay h3 {
  margin: 0;
  color: var(--bone);
  font-size: 22px;
}

.tile__overlay span {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.85;
}

.tile:hover img,
.tile a:focus-visible img {
  transform: scale(1.04);
}

.tile:hover .tile__overlay,
.tile a:focus-visible .tile__overlay {
  opacity: 1;
}

.view-more {
  display: block;
  padding: 30px;
  background: var(--sand);
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  color: var(--graphite);
}

.view-more::after {
  content: " →";
  color: var(--gold);
}

.view-more:hover {
  background: var(--stone);
  color: var(--graphite);
}

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

.category-tile {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--stone);
}

.category-tile--4 { grid-column: span 4; }
.category-tile--8 { grid-column: span 8; }
.category-tile--12 { grid-column: span 12; }

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.category-tile__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 22px 10px;
  background: rgba(245, 240, 232, 0.92);
  font: 500 var(--step-1)/1.2 var(--font-display);
  color: var(--graphite);
}

.category-tile:hover .category-tile__label {
  color: var(--gold-deep);
}

.loader {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.loader span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.1s infinite ease-in-out;
}

@keyframes pulse {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

/* --- Composition page ---------------------------------------------------------------------- */

.composition-layout {
  display: grid;
  grid-template-columns: 8fr 3fr;
  column-gap: calc(var(--container) / 12);
  padding: 50px 20px;
}

.gallery__main {
  position: relative;
  background: var(--sand);
}

.gallery__main img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  margin: 0 auto;
}

/* Gallery photos keep their natural height (no stacked, absolutely positioned slides). */
.gallery__main .carousel__slide {
  position: static;
  display: none;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.gallery__main .carousel__slide.is-active {
  display: block;
}

.gallery__main .carousel__arrow {
  color: var(--bone);
  border-color: transparent;
  background: rgba(42, 40, 38, 0.45);
}

.gallery__main .carousel__arrow:hover {
  background: var(--graphite);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.gallery__thumbs button {
  display: block;
  width: 100%;
  height: 120px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--graphite);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.gallery__thumbs button[aria-current="true"] img,
.gallery__thumbs button:hover img {
  opacity: 1;
}

.composition-name {
  margin: 36px 0 4px;
  padding-top: 32px;
  border-top: 1px solid var(--stone);
  font-size: var(--step-2);
}

.composition-name small {
  display: block;
  margin-top: 6px;
  font: 300 14px/1.5 var(--font-body);
  color: var(--muted);
}

.composition-categories {
  margin: 0 0 24px;
}

.tabs__list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--stone);
}

.tabs__list button {
  margin-bottom: -1px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.tabs__list button[aria-selected="true"] {
  border-bottom-color: var(--gold);
  color: var(--graphite);
}

.tabs__panel {
  padding: 25px 0 10px;
}

.tech-table {
  width: 100%;
  margin-bottom: 25px;
  border-collapse: collapse;
  font-size: 15px;
}

.tech-table th,
.tech-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--stone);
  text-align: left;
}

.tech-table th {
  font-weight: 400;
  color: var(--muted);
}

.tech-table td {
  text-align: right;
}

.contact-box {
  margin-top: 36px;
  padding: 60px 50px 50px;
  background: var(--sand);
}

.contact-box h2 {
  margin: 0 0 6px;
  font-size: var(--step-2);
}

.contact-box__lead {
  margin: 0 0 36px;
  color: var(--muted);
}

.work-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.work-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work-nav__next {
  justify-self: end;
}

.work-nav__all {
  font-size: 20px;
  color: var(--gold);
}

.related {
  margin-top: 60px;
}

.related h2 {
  font-size: var(--step-1);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 20px;
}

.related__grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.related__grid h3 {
  margin: 14px 0 0;
  font-size: 22px;
}

.related__grid time {
  font-size: 13px;
  color: var(--muted);
}

.widget {
  margin-bottom: 56px;
}

.widget__title {
  margin-bottom: 18px;
}

.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--graphite);
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--graphite);
  outline: none;
}

.search-form ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-form button {
  border: 0;
  background: none;
  color: var(--graphite);
  font-size: 16px;
  cursor: pointer;
}

.search-form button:hover {
  color: var(--gold-deep);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--stone);
}

.link-list a {
  display: block;
  padding: 7px 0;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li + li {
  margin-top: 18px;
}

.recent-list a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 15px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}

.recent-list img {
  width: 96px;
  height: 64px;
  object-fit: cover;
}

.rich-text ul {
  padding-left: 20px;
}

/* --- Business: work process ---------------------------------------------------------------- */

.process {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--graphite);
  color: var(--on-dark);
}

.process .cover-image {
  opacity: 0.14;
}

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: 4fr 7fr;
  column-gap: calc(var(--container) / 12);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 40px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}

.step .icon {
  font-size: 30px;
  color: var(--gold);
}

.step h3 {
  margin: 0 0 8px;
  color: var(--bone);
  font-size: var(--step-1);
}

/* --- Footer ---------------------------------------------------------------------------------- */

.site-footer {
  padding: 90px 0 40px;
  background: var(--graphite-deep);
  color: var(--on-dark);
}

.site-footer a {
  color: var(--on-dark);
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gutter);
}

.site-footer__logo img {
  width: 190px;
  height: auto;
  margin-bottom: 36px;
}

.site-footer p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.site-footer address {
  font-style: normal;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: var(--gold);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 34px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid rgba(216, 206, 192, 0.2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 226, 214, 0.7);
}

.social {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

/* --- Misc -------------------------------------------------------------------------------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  font-size: 14px;
}

.pagination a,
.pagination span {
  padding: 6px 14px;
  border: 1px solid var(--stone);
}

.pagination a:hover {
  border-color: var(--gold);
}

.consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 26px;
  background: var(--graphite);
  color: var(--on-dark);
  box-shadow: 0 10px 30px rgba(32, 30, 28, 0.3);
  font-size: 14px;
}

.consent p {
  margin: 0;
}

.consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent .btn {
  padding: 9px 18px;
}

.consent .btn--gray {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.consent .btn--gray:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--graphite);
}

/* Fade-in on scroll. Content is only hidden once the script has confirmed it can reveal
   it again, so nothing stays invisible if JavaScript fails. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .site-header__inner {
    padding: 0 20px;
  }

  .site-header__logo img {
    width: 160px;
  }

  .site-search {
    padding: 20px;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__list {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 20px;
    background: var(--bone);
    border-bottom: 1px solid var(--stone);
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__list a {
    padding: 14px 0;
    border-bottom: 1px solid var(--stone);
  }

  .site-nav__list a:hover,
  .site-nav__list a[aria-current="page"] {
    border-bottom-color: var(--stone);
    color: var(--gold-deep);
  }

  .site-nav {
    gap: 5px;
  }

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

  .composition-layout {
    grid-template-columns: 1fr;
  }

  .composition-layout aside {
    margin-top: 60px;
  }

  .split > * {
    padding: 70px 30px;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }
}

@media (max-width: 767px) {
  :root {
    --step-2: 34px;
    --step-3: 44px;
  }

  .hero__title img {
    width: 240px;
  }

  .hero__subtitle {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .hero__subtitle span + span::before {
    margin: 0 10px;
  }

  .posts,
  .features,
  .contact-info__grid,
  .related__grid,
  .site-footer__grid,
  .process__steps {
    grid-template-columns: 1fr;
  }

  .whyus__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }

  .category-tile--4,
  .category-tile--8 {
    grid-column: span 12;
  }

  .category-tile {
    height: 260px;
  }

  .carousel {
    height: 320px;
  }

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

  .split > * {
    padding: 60px 20px;
  }

  .split > * + * {
    border-left: 0;
    border-top: 1px solid var(--stone);
  }

  .provinces {
    columns: 2;
  }

  .band__row,
  .page-title__inner,
  .site-footer__bottom,
  .consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    gap: 20px;
  }

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

  .section {
    padding-top: 70px;
  }

  .contact-box {
    padding: 44px 24px 36px;
  }

  .composition-layout {
    padding-top: 30px;
  }

  .gallery__thumbs button {
    height: 72px;
  }
}

@media (max-width: 480px) {
  .tile {
    height: 200px;
  }

  .ideas-grid__intro {
    height: auto;
    padding: 56px 20px;
  }
}

/* --- Error and maintenance pages ----------------------------------------------------------- */

.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.status-page img {
  width: 200px;
  height: auto;
  margin-bottom: 56px;
}

.status-page__code {
  margin: 0 0 10px;
  font: 500 120px/1 var(--font-display);
  color: var(--gold-deep);
}

.status-page h1 {
  font-size: var(--step-2);
}

.status-page h2 {
  font-size: var(--step-1);
  color: var(--muted);
}
