:root {
  --black: #070706;
  --ink: #11100e;
  --coal: #181613;
  --graphite: #24211d;
  --paper: #f3eee5;
  --paper-soft: #fbf7ef;
  --white: #fffaf0;
  --gold: #cda349;
  --gold-soft: #e1c276;
  --bronze: #9d7338;
  --text: #181613;
  --muted: rgba(24, 22, 19, 0.68);
  --line: rgba(205, 163, 73, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body::selection {
  color: var(--black);
  background: var(--gold-soft);
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

section {
  scroll-margin-top: 86px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 74px;
  padding: 14px clamp(22px, 4vw, 58px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.84), rgba(7, 7, 6, 0.28));
  backdrop-filter: blur(14px);
}

.brand-word {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 17px;
  color: var(--ivory);
  white-space: nowrap;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(16px, 2.3vw, 34px);
  color: rgba(255, 250, 240, 0.76);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-cta,
.button,
.contact-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.header-cta,
.button.primary,
.contact-form button {
  color: var(--black);
  border-color: #dfc174;
  background: linear-gradient(135deg, #e6cb80, var(--gold));
}

.button.ghost {
  color: var(--white);
  background: rgba(7, 7, 6, 0.32);
}

.button.dark-line {
  color: var(--text);
  border-color: rgba(24, 22, 19, 0.18);
  background: rgba(255, 255, 255, 0.48);
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  background: url("assets/serlok-bilbao-hero.png") center top / cover no-repeat, var(--black);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.02) 0%, rgba(7, 7, 6, 0.02) 42%, rgba(7, 7, 6, 0.44) 62%, rgba(7, 7, 6, 0.88) 78%, rgba(7, 7, 6, 0.98) 100%),
    linear-gradient(90deg, rgba(7, 7, 6, 0.2) 0%, rgba(7, 7, 6, 0.08) 46%, rgba(7, 7, 6, 0.02) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(520px, 60svh, 660px) 0 clamp(44px, 5vw, 64px);
}

.hero-copy {
  width: min(700px, 100%);
  padding-top: 0;
}

.eyebrow {
  display: none;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  max-width: 700px;
  margin-bottom: 16px;
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.08;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 22px;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.58;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.positioning {
  color: var(--white);
  background: var(--black);
}

.positioning-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}

.positioning h2,
.section-head h2,
.split-copy h2,
.network-content h2,
.visual-statement h2,
.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.05;
}

.positioning p:not(.eyebrow) {
  max-width: 840px;
  color: rgba(255, 250, 240, 0.76);
  font-size: 20px;
  line-height: 1.65;
}

.position-tags,
.network-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.position-tags span,
.network-panel span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(205, 163, 73, 0.34);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(92px, 11vw, 156px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-head.compact {
  display: block;
  max-width: 840px;
}

.section-head.compact .eyebrow {
  display: none;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head p:not(.eyebrow),
.split-copy p,
.network-content p,
.visual-statement p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

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

.cards article {
  min-height: 310px;
  padding: 32px;
  border: 1px solid rgba(24, 22, 19, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)), var(--paper-soft);
}

.cards span,
.service-list span {
  display: none;
}

.cards h3 {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.08;
}

.cards p,
.service-list p {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.7fr);
  min-height: 720px;
}

.split.dark {
  color: var(--white);
  background: var(--coal);
}

.valuation-image {
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.1), rgba(7, 7, 6, 0.72)),
    url("assets/bilbao-residential-street.png") center / cover;
}

.split-copy {
  align-self: center;
  padding: clamp(46px, 7vw, 92px);
}

.split-copy p {
  color: rgba(255, 250, 240, 0.74);
}

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

.mini-grid div {
  padding: 20px;
  border: 1px solid rgba(205, 163, 73, 0.28);
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid strong {
  margin-bottom: 8px;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.mini-grid span {
  color: rgba(255, 250, 240, 0.72);
}

.method {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(32px, calc((100vw - 1280px) / 2));
  padding-left: max(32px, calc((100vw - 1280px) / 2));
  color: var(--white);
  background: var(--black);
}

.method .section-head,
.method .timeline {
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.method .section-head {
  max-width: 980px;
  margin-bottom: clamp(54px, 7vw, 86px);
}

.method .section-head h2 {
  max-width: 980px;
  font-size: clamp(36px, 4.2vw, 60px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  min-height: 240px;
  padding: 30px clamp(22px, 2.5vw, 34px);
  border-right: 1px solid rgba(255, 250, 240, 0.14);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: block;
  margin-bottom: 72px;
  color: var(--gold-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.timeline p {
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.62;
}

.private-network {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.58fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
  min-height: 680px;
  padding: clamp(78px, 10vw, 140px) max(24px, calc((100vw - 1280px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.9), rgba(7, 7, 6, 0.52)),
    url("assets/bilbao-panorama-full.png") center / cover;
}

.network-content {
  max-width: 800px;
}

.network-content p {
  color: rgba(255, 250, 240, 0.76);
}

.network-panel {
  align-content: end;
  margin: 0;
}

.services .section-head {
  margin-bottom: 54px;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-list article {
  display: grid;
  grid-template-columns: 36px minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  min-height: 138px;
  padding: clamp(30px, 3.6vw, 46px);
  border: 1px solid rgba(24, 22, 19, 0.1);
  background:
    linear-gradient(90deg, rgba(209, 166, 76, 0.08), transparent 34%),
    var(--paper-soft);
}

.service-list article::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 1px solid rgba(209, 166, 76, 0.72);
  transform: rotate(45deg);
  background: rgba(209, 166, 76, 0.08);
}

.service-list span,
.service-list h3,
.service-list p {
  margin: 0;
}

.service-list h3 {
  max-width: 300px;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.service-list p {
  max-width: 520px;
  font-size: clamp(17px, 1.35vw, 22px);
}

.visual-statement {
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: clamp(72px, 10vw, 128px) max(24px, calc((100vw - 1280px) / 2));
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.08), rgba(7, 7, 6, 0.86)),
    url("assets/bilbao-guggenheim-night.png") center / cover;
}

.visual-statement > div {
  max-width: 900px;
  padding-top: 0;
}

.visual-statement p {
  max-width: 660px;
  color: rgba(255, 250, 240, 0.76);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
}

.contact-actions {
  margin: 30px 0;
}

.contact-details {
  display: grid;
  gap: 9px;
  color: rgba(24, 22, 19, 0.72);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(205, 163, 73, 0.32);
  background: var(--paper-soft);
  box-shadow: 0 32px 90px rgba(24, 22, 19, 0.12);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(24, 22, 19, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 22, 19, 0.16);
  padding: 14px 13px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.contact-form button {
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(220px, 0.38fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
  padding: clamp(64px, 7vw, 104px) max(24px, calc((100vw - 1280px) / 2));
  color: rgba(255, 250, 240, 0.74);
  border-top: 1px solid rgba(205, 163, 73, 0.18);
  background:
    linear-gradient(135deg, rgba(205, 163, 73, 0.1), rgba(7, 7, 6, 0) 38%),
    var(--black);
}

.site-footer strong {
  display: block;
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.site-footer .eyebrow {
  display: none;
}

.footer-nav {
  display: grid;
  gap: 12px;
}

.footer-nav a {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-nav {
  justify-self: end;
  text-align: right;
}

.footer-nav a {
  color: rgba(255, 250, 240, 0.74);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .section-head,
  .split,
  .private-network,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-head .eyebrow {
    display: none;
  }

  .cards.three,
  .timeline,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  }

  .timeline span {
    margin-bottom: 20px;
  }

  .service-list article {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .service-list p {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 100svh;
    background-position: center top;
    background-size: auto 40svh;
    background-color: var(--black);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.02) 0%, rgba(7, 7, 6, 0.08) 35%, rgba(7, 7, 6, 0.88) 56%, rgba(7, 7, 6, 1) 100%);
  }

  .hero-inner {
    width: calc(100% - 36px);
    padding: 35svh 0 42px;
  }

  .hero-copy {
    width: min(100%, 340px);
    padding-top: 0;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.08;
  }

  .hero-copy p:not(.eyebrow),
  .section-head p:not(.eyebrow),
  .split-copy p,
  .network-content p,
  .visual-statement p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-copy p:not(.eyebrow) {
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .contact-form button {
    width: 100%;
  }

  .section,
  .positioning-inner {
    width: calc(100% - 36px);
    padding: 72px 0;
  }

  .section.method {
    width: 100%;
    padding: 72px 18px;
  }

  .positioning h2,
  .section-head h2,
  .split-copy h2,
  .network-content h2,
  .visual-statement h2,
  .contact h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .split-copy,
  .private-network,
  .visual-statement {
    padding: 64px 18px;
  }

  .valuation-image {
    min-height: 340px;
  }

  .cards article {
    min-height: 0;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
  }

  .service-list article::before {
    width: 42px;
    height: 1px;
    transform: none;
  }

  .service-list p {
    grid-column: auto;
  }

  .contact-form {
    padding: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 58px 18px;
  }

  .footer-nav {
    justify-self: start;
    text-align: left;
  }
}
