:root {
  --bg: #eef1f2;
  --paper: #ffffff;
  --ink: #162029;
  --muted: #63717c;
  --line: #d8dee2;
  --graphite: #101820;
  --graphite-2: #1a252f;
  --steel: #3f5868;
  --blue: #6f8795;
  --terracotta: #b96741;
  --terracotta-dark: #934f33;
  --mist: #f7f8f8;
  --shadow: 0 26px 70px rgba(16, 24, 32, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 222, 226, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 40px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-width: 268px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  line-height: 1.12;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(185, 103, 65, 0.96), rgba(63, 88, 104, 0.98));
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #26323c;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a {
  position: relative;
  padding: 27px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.button,
.nav-cta,
.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--graphite);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.nav-cta:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.button.light,
.ghost-button {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--graphite);
  background: var(--paper);
}

.nav-cta {
  color: var(--paper);
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  background: var(--paper);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span {
  transform: translate(-50%, -50%);
}

.menu-toggle::before {
  transform: translate(-50%, calc(-50% - 6px));
}

.menu-toggle::after {
  transform: translate(-50%, calc(-50% + 6px));
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.wrap.narrow {
  max-width: 860px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 22px));
  overflow: hidden;
  color: var(--paper);
  background: var(--graphite);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.78) 42%, rgba(16, 24, 32, 0.36) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.74) 0%, rgba(16, 24, 32, 0.12) 52%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  min-height: calc(min(780px, calc(100svh - 22px)) - 126px);
  margin: 0 auto;
  padding: 84px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 56px;
}

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

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
}

.hero p {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.52;
}

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

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card dl,
.info-list {
  margin: 0;
}

.hero-card dl {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.hero-card dt,
.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card dd,
.info-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 730;
  line-height: 1.34;
}

.line-label {
  display: inline-block;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.hero-strip {
  width: min(100% - 40px, var(--max));
  min-height: 126px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-strip div {
  padding: 22px 28px 24px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.hero-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.34;
}

.section,
.page-section {
  padding: 96px 0;
}

.section.white,
.page-section.white {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.intro-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.86fr);
}

.text-stack h2,
.section-head h2,
.band-grid h2,
.process-block h2,
.contact-card h2,
.article h2 {
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
}

.text-stack p,
.article p,
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.text-stack p {
  margin-top: 22px;
}

.photo-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.photo-frame img {
  height: min(520px, 62vw);
  object-fit: cover;
}

.photo-frame.vertical img {
  height: 650px;
}

.photo-frame figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(16, 24, 32, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.section-head {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-head .lead {
  max-width: 820px;
  margin-top: 18px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.focus-card {
  min-height: 300px;
  padding: 30px 26px;
  background: var(--paper);
}

.focus-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 103, 65, 0.32);
  border-radius: 999px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 850;
}

.focus-card h3 {
  margin-top: 36px;
}

.focus-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.64;
}

.dark {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(32, 45, 56, 0.98)),
    var(--graphite);
}

.dark h2,
.dark h3 {
  color: var(--paper);
}

.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  gap: 74px;
  align-items: start;
}

.band-grid > div:first-child p {
  max-width: 700px;
  margin-top: 24px;
  font-size: 19px;
}

.principles {
  display: grid;
  gap: 18px;
}

.principles div {
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--terracotta);
}

.principles strong {
  display: block;
  color: var(--paper);
  font-size: 21px;
  line-height: 1.22;
}

.principles p {
  margin-top: 8px;
  font-size: 16px;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.process-block .lead {
  margin-top: 18px;
}

.process-list {
  margin-top: 34px;
  display: grid;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-item b {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--steel);
  font-size: 13px;
}

.process-item h3 {
  font-size: 21px;
}

.process-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 16px;
}

.contact-band {
  background: linear-gradient(180deg, var(--bg), #e4e9ec);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.74fr);
  gap: 52px;
  align-items: center;
}

.contact-layout.align-start {
  align-items: start;
}

.contact-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--graphite);
}

.contact-photo img {
  height: 520px;
  object-fit: cover;
}

.contact-card,
.side-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.08);
}

.contact-card h2 {
  margin-top: 10px;
  font-size: clamp(31px, 4vw, 48px);
}

.contact-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-list.large {
  margin-top: 24px;
  gap: 20px;
}

.info-list.large dd {
  font-size: 18px;
}

.page-hero {
  position: relative;
  padding: 96px 0 90px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(63, 88, 104, 0.94)),
    var(--graphite);
}

.page-hero.image-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.88), rgba(16, 24, 32, 0.58)),
    url("../img/building-detail.jpg") center / cover no-repeat;
}

.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1;
}

.page-hero p {
  max-width: 800px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.58;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 58px;
  align-items: start;
}

.article {
  max-width: 840px;
}

.article h2 {
  margin-top: 44px;
  font-size: clamp(30px, 4vw, 46px);
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.76;
}

.article p {
  margin-top: 18px;
}

.article ul {
  margin: 22px 0 0;
  padding-left: 22px;
}

.article li + li {
  margin-top: 9px;
}

.side-panel {
  position: sticky;
  top: 104px;
}

.side-panel h3 {
  margin-bottom: 18px;
}

.side-panel p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.feature-rows {
  display: grid;
  gap: 16px;
}

.feature-row {
  min-height: 150px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-row > span {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.feature-row p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 17px;
}

.sticky {
  position: sticky;
  top: 104px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--graphite);
  padding: 70px 0 30px;
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer .brand small {
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(260px, 0.65fr);
  gap: 56px;
  align-items: start;
}

.footer-grid p {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid .photo-note {
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-info dt {
  color: rgba(255, 255, 255, 0.52);
}

.footer-info dd {
  color: var(--paper);
  font-size: 16px;
}

.footer-bottom {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(420px, calc(100vw - 44px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  font-size: 18px;
}

.cookie-banner p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions .button,
.cookie-actions .ghost-button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
}

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

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

@media (max-width: 1080px) {
  .nav {
    width: min(100% - 32px, var(--max));
  }

  .nav-links {
    gap: 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .split,
  .intro-split,
  .band-grid,
  .timeline-layout,
  .contact-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .side-panel,
  .sticky {
    position: static;
  }

  .hero-card {
    max-width: 520px;
  }

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav {
    min-height: 68px;
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    height: calc(100svh - 68px);
    padding: 26px;
    display: none;
    align-content: start;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
  }

  .menu-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 610px;
    width: min(100% - 28px, var(--max));
    padding: 70px 0 28px;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 66px);
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .hero-strip {
    width: min(100% - 28px, var(--max));
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section,
  .page-section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 72px 0 68px;
  }

  .wrap {
    width: min(100% - 28px, var(--max));
  }

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

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

  .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .photo-frame img,
  .photo-frame.vertical img,
  .contact-photo img {
    height: min(420px, 92vw);
  }

  .contact-card,
  .side-panel {
    padding: 26px;
  }

  .process-item {
    grid-template-columns: 46px 1fr;
    gap: 16px;
  }

  .process-item b {
    width: 42px;
    height: 42px;
  }

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

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

@media (max-width: 520px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .brand {
    font-size: 14px;
  }

  .hero-card {
    padding: 22px;
  }

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

  .button,
  .ghost-button {
    width: 100%;
  }

  .text-stack h2,
  .section-head h2,
  .band-grid h2,
  .process-block h2,
  .contact-card h2,
  .article h2 {
    font-size: 34px;
  }

  .article p,
  .article li,
  .text-stack p,
  .lead {
    font-size: 17px;
  }
}
