:root {
  --bg: #ece7df;
  --bg-2: #f7f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffdfa;
  --ink: #121212;
  --muted: #5f5a55;
  --line: rgba(18, 18, 18, 0.1);
  --accent: #c77e42;
  --accent-2: #163d57;
  --shadow: 0 24px 80px rgba(18, 18, 18, 0.1);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: min(1240px, calc(100% - 32px));
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    radial-gradient(circle at 10% 10%, rgba(199, 126, 66, 0.14), transparent 22%),
    radial-gradient(circle at 85% 14%, rgba(22, 61, 87, 0.12), transparent 18%),
    linear-gradient(180deg, #efebe5 0%, #e9e3db 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-backdrop {
  position: fixed;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  background: rgba(255, 250, 245, 0.3);
  backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.section-shell,
.site-footer {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  width: var(--shell);
  margin: 18px auto 0;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 239, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.brand-copy small,
.site-nav a,
.eyebrow,
.portfolio-copy span,
.service-panel span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand-copy small,
.site-nav a,
.eyebrow {
  color: var(--muted);
}

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

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
  gap: 28px;
  padding: 28px 0 72px;
  align-items: end;
}

.hero-copy {
  padding: 24px 0 12px;
}

.hero-copy h1,
.section-heading h2,
.service-panel h3,
.portfolio-copy h3,
.highlight-copy h3,
.quotation-intro h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.hero-text {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero-facts article,
.service-panel,
.quotation-form,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.hero-facts article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
  min-height: 700px;
}

.hero-main-shot,
.stack-card,
.portfolio-card,
.highlight-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-main-shot {
  min-height: 100%;
}

.hero-main-shot img,
.stack-card img,
.portfolio-card img,
.highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-shot::after,
.portfolio-card::after,
.highlight-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
}

.hero-main-shot figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(15, 15, 15, 0.54);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-main-shot span {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-stack {
  display: grid;
  grid-template-rows: 0.92fr 1.08fr;
  gap: 16px;
}

.stack-card {
  min-height: 0;
}

.portrait-card {
  min-height: 0;
}

.ticker {
  overflow: hidden;
  padding: 8px 0 22px;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 18px;
  padding-left: 24px;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

.portfolio,
.gallery,
.services,
.highlights,
.quotation,
.contact {
  padding: 64px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.split-heading {
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
}

.section-heading h2,
.quotation-intro h2,
.contact-card h2 {
  max-width: 13ch;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
}

.split-heading > p,
.quotation-intro p:last-child,
.contact-links p {
  color: var(--muted);
}

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

.portfolio-card {
  min-height: 280px;
  grid-column: span 4;
}

.portfolio-card.card-large {
  min-height: 580px;
  grid-column: span 6;
  grid-row: span 2;
}

.portfolio-card.card-wide {
  min-height: 280px;
  grid-column: span 6;
}

.portfolio-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
}

.portfolio-copy span,
.service-panel span {
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-copy h3 {
  margin-top: 8px;
  max-width: 14ch;
  font-size: clamp(1.02rem, 1.2vw, 1.35rem);
}

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

.gallery-grid {
  columns: 4 240px;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.7);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.service-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.service-panel span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-2);
}

.service-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-panel p {
  margin: 0;
  color: var(--muted);
}

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

.highlight-row {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 20px;
  align-items: center;
}

.highlight-row.reverse {
  grid-template-columns: 1.04fr 0.96fr;
}

.highlight-row.reverse .highlight-image {
  order: 2;
}

.highlight-row.reverse .highlight-copy {
  order: 1;
}

.highlight-image {
  min-height: 420px;
}

.highlight-copy {
  padding: 8px 8px 8px 2px;
}

.highlight-copy h3 {
  max-width: 12ch;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  margin-top: 6px;
}

.highlight-copy ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.quotation-banner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 26px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(199, 126, 66, 0.22), transparent 24%),
    linear-gradient(135deg, #111111, #202020 54%, #2f2f2f);
  color: #fff;
  box-shadow: var(--shadow);
}

.quotation-intro {
  padding: 6px 6px 0;
}

.quotation-intro .eyebrow,
.quotation-intro p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.quotation-form {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.form-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
}

.form-alert.is-hidden {
  display: none;
}

.form-alert.success {
  background: rgba(95, 190, 120, 0.16);
  border: 1px solid rgba(95, 190, 120, 0.3);
  color: #dff6e4;
}

.form-alert.error {
  background: rgba(214, 92, 92, 0.16);
  border: 1px solid rgba(214, 92, 92, 0.3);
  color: #ffd9d9;
}

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

.form-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quotation-form label,
.message-field {
  display: grid;
  gap: 8px;
}

.quotation-form label > span,
.message-field > span,
.check-group legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.quotation-form input,
.quotation-form select,
.quotation-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.quotation-form input::placeholder,
.quotation-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.quotation-form input:focus,
.quotation-form select:focus,
.quotation-form textarea:focus {
  border-color: rgba(199, 126, 66, 0.8);
  box-shadow: 0 0 0 4px rgba(199, 126, 66, 0.14);
}

.message-field {
  margin-top: 18px;
}

.captcha-row {
  margin-top: 18px;
}

.captcha-field {
  display: grid;
  gap: 8px;
}

.captcha-question {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.captcha-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.captcha-note.is-error {
  color: #ffb3b3;
}

.quotation-form .button {
  margin-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 28px;
  border-radius: 32px;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

[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);
}

@media (max-width: 1100px) {
  .hero,
  .split-heading,
  .quotation-banner,
  .highlight-row,
  .highlight-row.reverse,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .highlight-row.reverse .highlight-image,
  .highlight-row.reverse .highlight-copy {
    order: initial;
  }

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

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

  .portfolio-card,
  .portfolio-card.card-large,
  .portfolio-card.card-wide {
    grid-column: span 6;
    min-height: 340px;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .site-backdrop {
    inset: 10px;
    border-radius: 24px;
  }

  .site-header {
    margin-top: 8px;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

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

  .hero,
  .hero-stage,
  .hero-facts,
  .service-grid,
  .form-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 220px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.75rem, 6.4vw, 2.45rem);
  }

  .hero-stage {
    gap: 12px;
  }

  .hero-main-shot,
  .highlight-image {
    min-height: 360px;
  }

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

  .portfolio-card,
  .portfolio-card.card-large,
  .portfolio-card.card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .site-footer,
  .site-header {
    width: min(100% - 18px, 100%);
  }

  .gallery-grid {
    columns: 1;
  }

  .brand {
    max-width: calc(100% - 68px);
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero,
  .portfolio,
  .services,
  .highlights,
  .quotation,
  .contact {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-main-shot,
  .highlight-image,
  .portfolio-card,
  .portfolio-card.card-large,
  .portfolio-card.card-wide {
    min-height: 300px;
  }

  .quotation-banner,
  .quotation-form,
  .contact-card {
    padding: 18px;
    border-radius: 24px;
  }

  .contact-links a {
    font-size: 1.35rem;
  }
}
