:root {
  --bg: #f4efe6;
  --bg-2: #ebe4d6;
  --bg-3: #e2d8c8;
  --paper: #fbf8f2;
  --ink: #1c1712;
  --muted: #6d655b;
  --line: rgba(28, 23, 18, 0.12);
  --accent: #9a4e24;
  --accent-2: #c47a3a;
  --brass: #b08a4a;
  --green: #3e5a46;
  --green-2: #5c7a64;
  --danger: #b23b2a;
  --espresso: #161310;
  --ivory: #f6f1e8;
  --on-photo: #f6f1e8;
  --on-photo-muted: #d5cbbd;
  --shadow: 0 18px 50px rgba(28, 23, 18, 0.08);
  --radius: 12px;
  --container: 1220px;
  --header: 76px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(176, 138, 74, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(154, 78, 36, 0.22);
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 0.7em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--ivory);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container-wide { width: min(calc(100% - 40px), 1440px); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
}

.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ivory); }
.btn-primary:hover { background: #7e3d1b; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-green { background: var(--green); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 32px), 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a,
.nav-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav > li > a:hover,
.nav > li:focus-within > a { color: var(--ink); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  max-height: 70vh;
  overflow: auto;
}
.nav > li:hover > .dropdown,
.nav > li:focus-within > .dropdown { display: grid; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.dropdown a:hover { background: rgba(154, 78, 36, .08); color: var(--ink); }
.header-cta { display: flex; gap: 8px; }
.nav-toggle, .menu-close { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, .78) 0%, rgba(10, 8, 6, .42) 46%, rgba(10, 8, 6, .18) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, .38) 0%, rgba(10, 8, 6, .28) 32%, rgba(10, 8, 6, .92) 100%);
}
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='800' viewBox='0 0 1400 800' fill='none'%3E%3Cpath d='M-20 620C180 520 340 700 560 610C780 520 900 680 1120 590C1280 530 1380 560 1460 600' stroke='%23b08a4a' stroke-width='1'/%3E%3Cpath d='M-20 540C200 470 380 610 600 530C820 450 980 600 1200 520C1320 480 1400 500 1460 530' stroke='%23c47a3a' stroke-width='1'/%3E%3Cpath d='M-20 460C220 410 420 540 640 460C860 380 1040 520 1260 450C1360 420 1420 430 1460 450' stroke='%233e5a46' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover;
  animation: topo-drift 28s linear infinite;
}
@keyframes topo-drift {
  from { background-position: 0 0; }
  to { background-position: 80px -30px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-display {
  display: block;
  font-size: clamp(2.8rem, 7.2vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: .92;
  max-width: 14ch;
  margin-bottom: 18px;
  color: #fff;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f4ece3;
  max-width: 32ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}
.hero .lead {
  color: #f0e7dc;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}
.hero .kicker { color: #efc27a; }
.hero .kicker::before { background: #efc27a; }
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(10, 8, 6, 0.35);
  text-shadow: none;
}
.hero .btn-ghost:hover { border-color: #efc27a; color: #fff; }
.hero .btn-primary,
.hero .btn-green { text-shadow: none; }
.hero-actions { margin-top: 28px; }
.hero-meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: #eadfcf;
}
.hero-meta strong { display: block; color: #fff; font-size: 15px; font-family: var(--display); font-weight: 600; margin-bottom: 4px; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item { padding-right: 16px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.equip-card, .sector-card, .blog-card,
.contact-card, .form,
.faq-item, .related-card, .process article {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.service-card .media {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(22,19,16,.55));
  opacity: .7;
  transition: opacity .3s ease;
}
.service-card:hover .media::after { opacity: 1; }
.service-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card .more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.split img, .frame img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid rgba(154, 78, 36, .28);
  border-radius: 22px;
  z-index: -1;
}

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-height: 220px;
}
.process span {
  font-family: var(--mono);
  color: var(--green);
  font-size: 12px;
}

.equip-grid, .sector-grid, .project-grid, .blog-grid, .faq-list, .related-grid {
  display: grid;
  gap: 16px;
}
.project-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
.equip-grid { grid-template-columns: repeat(4, 1fr); }
.equip-card, .sector-card, .blog-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.equip-card img, .blog-card img, .project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.equip-card div, .sector-card, .blog-card .body { padding: 18px; }
.sector-grid { grid-template-columns: repeat(4, 1fr); }
.sector-card { min-height: 140px; }
.sector-card strong { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }
.sector-card p { color: var(--muted); font-size: 14px; margin: 0; }

.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 320px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card .meta {
  position: absolute;
  inset: auto 0 0;
  padding: 72px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 6, .96));
  color: #fff;
}
.project-card .meta h3 { color: #fff; }
.project-card .meta p { color: #eadfcf; margin: 0; }
.project-card small {
  font-family: var(--mono);
  color: #efc27a;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.filter-btn.is-active, .filter-btn:hover { color: var(--ivory); background: var(--accent); border-color: var(--accent); }

.faq-list { grid-template-columns: 1fr; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
}
.faq-item .answer { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.is-open .answer { display: block; }

.cta-band {
  background:
    linear-gradient(135deg, rgba(154, 78, 36, .12), rgba(62, 90, 70, .10)),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
.contact-card, .form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.form label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 10px;
}
.breadcrumb a:hover { color: var(--accent); }
.page-hero { padding: 28px 0 10px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); max-width: 18ch; }
.page-banner {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 10px;
}
.page-banner .hero-media { position: absolute; inset: 0; }
.page-banner .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, .72) 0%, rgba(10, 8, 6, .35) 55%, rgba(10, 8, 6, .2) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, .28), rgba(10, 8, 6, .92));
}
.page-banner .page-hero {
  position: relative;
  z-index: 2;
  padding: 72px 0 48px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.page-banner .page-hero h1 { color: #fff; }
.page-banner .page-hero .lead { color: #f0e7dc; }
.page-banner .kicker { color: #efc27a; }
.page-banner .kicker::before { background: #efc27a; }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 18px; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.content-media { margin: 28px 0; }
.content-media figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.related-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.related-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-2);
}
.related-card:hover { border-color: rgba(154, 78, 36, .45); }

.site-footer {
  border-top: 1px solid rgba(246, 241, 232, 0.08);
  padding: 56px 0 28px;
  background: var(--espresso);
  color: var(--ivory);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.site-footer h2, .site-footer h3 { font-size: 1.15rem; color: var(--ivory); }
.site-footer .lead,
.site-footer a { color: #c9c0b4; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  padding-top: 18px;
  color: #a89f93;
  font-size: 13px;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.service-card .hover-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #f6f1e8;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover .hover-cta,
.service-card:focus-within .hover-cta { opacity: 1; }

.tech-strip,
.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech-strip figure,
.service-gallery figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.tech-strip img,
.service-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.tech-strip figcaption,
.service-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}
.service-gallery {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}
.project-card:nth-child(3n+1) { min-height: 430px; }
.project-card:nth-child(3n+2) { min-height: 320px; }
.project-card:nth-child(3n) { min-height: 380px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.lightbox [data-lightbox-close] {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 22px;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    padding: 88px 24px 24px;
    overflow: auto;
    z-index: 45;
  }
  .nav.is-open .dropdown { position: static; display: grid; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px 12px; }
  .nav-toggle, .menu-close { display: inline-flex; }
  .menu-close.is-open { display: inline-flex; position: fixed; top: 22px; right: 18px; z-index: 46; }
  .blog-grid, .content-two, .tech-strip, .service-gallery { grid-template-columns: 1fr !important; }
  .trust-grid, .service-grid, .process, .equip-grid, .sector-grid, .project-grid, .related-grid, .footer-grid, .contact-grid, .split {
    grid-template-columns: 1fr;
  }
  .service-grid, .project-grid, .related-grid, .equip-grid, .sector-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .service-grid, .project-grid, .related-grid, .equip-grid, .sector-grid { grid-template-columns: 1fr; }
  .logo img { width: 138px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
