/* Light editorial design in the company’s black and gold palette. Dark tones are reserved for text, never section backgrounds. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f5f3;
  --ink: #181818;
  --muted: #595959;
  --gold: #887000;
  --line: #deded9;
  --accent: #887000;
  --brand-gold: #e6bb4b;
}
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
p {
  line-height: 1.85;
}
header {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  object-fit: contain;
  border-radius: 8px;
}
.brand:after {
  content: 'serial coders';
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink);
}
nav {
  gap: 2rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.nav-contact {
  background: var(--brand-gold);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 0.85rem 1.2rem;
}
.nav-contact:hover {
  background: #f3d57f;
  text-decoration: none;
}
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-repositioned {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 2.5rem;
  gap: 0;
}
.hero-copy {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0 5rem;
  align-items: start;
}
.hero-copy > .eyebrow {
  grid-column: 1/-1;
  margin-bottom: 2rem;
}
.hero-repositioned h1 {
  grid-column: 1/-1;
  font-size: clamp(2.8rem, 6.1vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 0 0 2.5rem;
  max-width: 1200px;
}
h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.06em;
  color: var(--accent);
}
.hero-repositioned .lead {
  grid-column: 1;
  font-size: 1.1rem;
  margin: 0;
  max-width: 640px;
}
.hero-expertise {
  grid-column: 2;
  grid-row: 3;
  border: 0;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--line);
  font-size: 0.95rem;
}
.hero-actions {
  grid-column: 1/-1;
  margin: 1.5rem 0 2rem;
  gap: 1rem;
}
.button,
.secondary-button {
  min-height: 52px;
  border-radius: 0;
  padding: 1rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button {
  background: var(--brand-gold);
  color: var(--ink);
  box-shadow: none;
}
.button:hover {
  background: #f3d57f;
  color: var(--ink);
  transform: translateY(-2px);
}
.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.secondary-button:hover {
  border-color: var(--accent);
  background: #fbf4df;
}
.hero-visual {
  margin: 0;
  grid-column: 1/-1;
  position: relative;
}
.architecture-figure img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}
.hero-visual img {
  aspect-ratio: 2.65;
  object-position: center 56%;
  width: 100%;
  border: 1px solid #e5e5e0;
}
.architecture-figure figcaption {
  font-family: 'Manrope', sans-serif;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.hero-meta {
  border: 0;
  grid-column: 1/-1;
  margin: 0;
  padding: 1rem 0 1.25rem;
  font-size: 0.69rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  gap: 1rem;
}
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin: 1rem 0 1.25rem;
}
.section-heading {
  max-width: 900px;
}
.section-heading > p {
  max-width: 740px;
  font-size: 1.05rem;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  background: none;
  margin-top: 1.75rem;
}
.offer-grid article {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.35fr;
  gap: 1rem 2rem;
  padding: 2rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}
.offer-grid .number {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.09em;
  padding-top: 0.4rem;
}
.offer-grid h3 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.035em;
}
.offer-grid p {
  font-size: 0.97rem;
  margin: 0;
  color: var(--muted);
}
.offer-grid .text-link {
  grid-column: 3;
  margin-top: 0.3rem;
}
.offer-grid article.featured-offer {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.featured-offer h3 {
  color: var(--accent);
}
.migration-feature {
  background: #f5f5f3;
  border-top: 0;
  gap: 4rem;
  align-items: center;
}
.migration-feature h2 em {
  color: var(--accent);
}
.migration-feature .large {
  color: var(--ink);
  font-size: 1.2rem;
}
.architecture-map {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem;
  box-shadow: 12px 12px 0 #eddbab;
  margin: 0 12px 12px 0;
  max-width: calc(100% - 12px);
}
.map-node strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
}
.map-target {
  background: #fbf4df;
  color: var(--ink);
  padding: 1.4rem;
  margin: 0 -1rem -1rem;
}
.map-target .eyebrow,
.map-target > span:last-child {
  color: #343434;
}
.map-bridge {
  border-color: var(--line);
}
#techno {
  background: #faf6e9;
  --ink: #181818;
  --muted: #595959;
  --line: #d9cdab;
  color: var(--ink);
}
#techno .eyebrow,
#techno .text-link {
  color: var(--accent);
}
.technology-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
}
.technology-card {
  background: none;
  border: 0;
  border-top: 1px solid #c8a13c;
  border-radius: 0;
  padding: 1.5rem 0;
  transition: transform 0.2s;
}
.technology-card:hover {
  background: none;
  border-color: var(--accent);
  transform: translateY(-4px);
}
.tech-monogram {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 500;
  width: auto;
  height: auto;
  display: block;
  line-height: 1.2;
}
.technology-card h3 {
  font-size: 1.3rem;
}
.technology-card p {
  font-size: 0.92rem;
  color: #343434;
}
.technology-card .text-link {
  font-size: 0.86rem;
}
.company {
  background: var(--bg);
  gap: 5rem;
}
.company .large {
  font-size: 1.55rem;
  line-height: 1.5;
}
.partner-logo {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.3rem;
  border-radius: 0;
  box-shadow: none;
  width: 230px;
  max-width: calc(100% - 2.6rem);
}
.sector-grid {
  gap: 0 3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sector-grid article {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem 0;
}
.sector-index {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  font-size: 1.2rem;
}
.sector-grid h3 {
  font-size: 1.3rem;
  line-height: 1.35;
}
.sector-grid p {
  color: var(--muted);
}
.process {
  background: #f5f5f3;
}
.process .migration-steps,
.migration-steps {
  grid-template-columns: 1fr;
  gap: 0;
}
.process .migration-steps li,
.migration-steps li {
  padding: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  gap: 2.5rem;
}
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  min-width: 4rem;
}
.migration-steps li > div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0 3rem;
  flex: 1;
}
.migration-steps h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
  grid-row: 1/3;
}
.migration-steps p {
  margin: 0 0 1rem;
  font-size: 0.97rem;
}
.migration-steps .deliverable {
  grid-column: 2;
  color: var(--ink);
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 0.87rem;
}
.home-faq {
  background: var(--bg);
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.faq-list details {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 1.6rem 0;
  margin: 0;
}
.faq-list details[open] {
  background: transparent;
}
.faq-list summary {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
.faq-list summary::marker {
  color: var(--accent);
}
.faq-list details p {
  font-size: 0.96rem;
  color: var(--muted);
}
.text-link {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.6;
}
.contact-band {
  background: var(--brand-gold);
  color: var(--ink);
  padding: 3rem 5%;
  border: 0;
}
.contact-band .eyebrow {
  color: #343434;
}
.contact-band h2 {
  font-size: clamp(2.8rem, 5.8vw, 5.5rem);
  max-width: 1100px;
  font-weight: 400;
}
.contact-band .button {
  background: #fff;
  color: var(--ink);
}
.contact-band .button:hover {
  background: #f7e6b6;
}
.contact-band p {
  color: #343434;
  max-width: 800px;
}
footer {
  background: var(--bg);
  color: var(--ink);
  padding-top: 2.5rem;
}
.footer-main strong {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  font-size: 1.4rem;
}
.footer-main a {
  margin-bottom: 0.7rem;
}
.footer-bottom {
  border-color: var(--line);
  color: var(--muted);
}
.detail-hero {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.detail-hero h1 {
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  max-width: 1100px;
  margin: 1.8rem 0;
}
.back {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.migration-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0 3rem;
  align-items: start;
}
.migration-hero > .back,
.migration-hero > .eyebrow,
.migration-hero > h1 {
  grid-column: 1/-1;
}
.migration-hero h1 {
  font-size: clamp(3.2rem, 7.8vw, 7.4rem);
  max-width: 1200px;
  margin-bottom: 2.4rem;
}
.migration-hero > .lead {
  font-size: 1.08rem;
  margin: 0;
  grid-column: 1;
  max-width: 100%;
}
.migration-hero > .button {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  margin: 0;
}
.migration-hero > .proposal-panorama {
  grid-column: 1/-1;
  margin: 2.5rem 0 0;
}
.migration-hero + .migration-feature {
  grid-template-columns: 1fr;
}
.migration-hero + .migration-feature > div {
  max-width: 950px;
}
.migration-hero + .migration-feature p {
  max-width: 900px;
}
.proposal-panorama img {
  width: 100%;
  display: block;
  aspect-ratio: 3.3;
  object-fit: cover;
  object-position: center 58%;
  border: 1px solid #e5e5e0;
}
.detail-grid {
  background: #f5f5f3;
  gap: 5rem;
}
.needs li {
  border-color: var(--line);
  font-size: 1.08rem;
}
.scenario-section {
  background: var(--bg);
}
.scenario-section .offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.scenario-section .offer-grid article {
  display: block;
  padding: 2rem 0;
}
.scenario-section .offer-grid h3 {
  margin-bottom: 1.4rem;
}
.consent {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 10px 50px #18181822;
}
.consent h2 {
  font-size: 1.25rem;
}
.consent button {
  border-color: var(--accent);
  color: var(--accent);
}
.skip {
  background: var(--brand-gold);
  color: var(--ink);
}
/* Keep related content close while retaining comfortable reading space. */
.technology-grid,
.sector-grid,
.process .migration-steps,
.migration-steps,
.database-grid {
  margin-top: 1.75rem;
}
.database-project {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  gap: 2rem;
}
.database-grid {
  gap: 2rem;
}
.database-preferred {
  padding: 1.75rem;
}
.section > div > p:first-child,
.section-heading > p:last-child,
.section p:last-child {
  margin-bottom: 0;
}
.company .large {
  margin-top: 0;
}
.footer-bottom {
  margin-top: 1.75rem;
}
@media (min-width: 761px) and (max-width: 1100px) {
  nav {
    gap: 1.2rem;
  }
  .brand:after {
    font-size: 1.2rem;
  }
  .technology-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-copy {
    gap: 0 2rem;
  }
  .migration-feature,
  .company {
    gap: 3rem;
  }
  .offer-grid article {
    grid-template-columns: 0.45fr 1fr 1.3fr;
    gap: 1rem 1.5rem;
  }
}
@media (max-width: 760px) {
  header {
    gap: 1.2rem;
    padding: 1rem 5%;
    flex-wrap: wrap;
  }
  .brand img {
    width: 45px;
    height: 44px;
  }
  .brand:after {
    font-size: 1.2rem;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
  }
  .nav-contact {
    padding: 0.65rem 0.8rem;
  }
  .hero-repositioned {
    padding-top: 2.7rem;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy > .eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.65rem;
  }
  .hero-repositioned h1 {
    font-size: clamp(2.25rem, 8.1vw, 3.65rem);
    margin-bottom: 1.8rem;
  }
  .hero-repositioned .lead {
    font-size: 1rem;
  }
  .hero-expertise {
    margin-top: 1.5rem;
    padding-left: 1rem;
  }
  .hero-actions {
    margin: 1.7rem 0 2rem;
  }
  .hero-visual img {
    aspect-ratio: 1.5;
  }
  .hero-meta {
    padding-bottom: 1rem;
    font-size: 0.65rem;
    gap: 0.7rem;
  }
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  h2 {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }
  .offer-grid article,
  .offer-grid article.featured-offer {
    display: block;
    padding: 1.7rem 0;
  }
  .offer-grid h3 {
    margin: 0.8rem 0 1rem;
  }
  .offer-grid .text-link {
    display: inline-block;
    margin-top: 1rem;
  }
  .migration-feature,
  .company,
  .detail-grid,
  .home-faq {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .company .large {
    font-size: 1.3rem;
  }
  .technology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .technology-card {
    padding: 1rem 0;
  }
  .tech-monogram {
    font-size: 2.1rem;
  }
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .sector-grid article {
    padding: 1.5rem 0;
  }
  .process .migration-steps li,
  .migration-steps li {
    gap: 1.2rem;
    padding: 1.6rem 0;
  }
  .step-number {
    font-size: 2rem;
    min-width: 2.5rem;
  }
  .migration-steps li > div {
    display: block;
  }
  .migration-steps h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .migration-steps .deliverable {
    margin-top: 1rem;
  }
  .detail-hero,
  .migration-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .migration-hero {
    display: block;
  }
  .detail-hero h1,
  .migration-hero h1 {
    font-size: clamp(2.7rem, 9.5vw, 4.5rem);
    margin: 1.5rem 0 2rem;
  }
  .migration-hero > .button {
    margin-top: 1.8rem;
  }
  .proposal-panorama img {
    aspect-ratio: 1.65;
  }
  .scenario-section .offer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-band {
    padding: 3rem 5%;
  }
  .contact-band h2 {
    font-size: clamp(2.3rem, 8.5vw, 4rem);
  }
  .partner-logo {
    box-sizing: border-box;
    max-width: 100%;
  }
  .technology-grid,
  .sector-grid,
  .process .migration-steps,
  .migration-steps,
  .database-grid {
    margin-top: 1.25rem;
  }
  .database-grid {
    gap: 1rem;
  }
  .database-preferred {
    padding: 1.25rem;
  }
  .database-project {
    margin-top: 1.25rem;
    gap: 1rem;
  }
  .contact-band {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Numbered navigation follows the homepage sections in reading order. */
header {
  display: grid;
  padding-bottom: 0;
}
header > .nav-contact {
  justify-self: end;
  font-weight: 700;
}
header nav {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
header nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-number {
  color: var(--accent);
  font-weight: 800;
}
.section .eyebrow {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.section[id] > .eyebrow,
.section[id] > div > .eyebrow,
.section[id] > .section-heading > .eyebrow {
  border-left: 4px solid var(--brand-gold);
  padding-left: 0.8rem;
}
.section h2 {
  font-weight: 600;
}
h1 em,
.migration-feature h2 em,
.tech-monogram,
.step-number,
.sector-index,
.database-preferred h3 span {
  color: #b18a12;
}
@media (max-width: 760px) {
  header {
    gap: 0.8rem;
    padding-bottom: 0;
  }
  header > .nav-contact {
    font-size: 0.72rem;
    padding: 0.6rem 0.7rem;
  }
  header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    padding: 0.85rem 0;
  }
  header nav a {
    font-size: 0.75rem;
    white-space: normal;
  }
  .section .eyebrow {
    font-size: 0.8rem;
  }
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  background: var(--surface);
}
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}
#project-contact label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
#project-contact input,
#project-contact textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem;
  border: 1px solid #92928a;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
#project-contact textarea {
  resize: vertical;
  min-height: 160px;
}
#project-contact input:focus,
#project-contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.form-note a {
  text-decoration: underline;
}
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#project-contact button {
  border: 0;
  cursor: pointer;
}
#project-contact button:disabled {
  opacity: 0.65;
  cursor: wait;
}
#contact-status:empty {
  display: none;
}
#contact-status {
  padding: 1rem;
  border-left: 3px solid var(--gold);
  background: #fff;
  font-size: 0.95rem;
}
#contact-status[data-state='error'] {
  border-color: #a52a2a;
}
#contact-status[data-state='success'] {
  border-color: #33733b;
}
@media (max-width: 760px) {
  .contact-form-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
}

.document-upload {
  border: 1px dashed var(--accent);
  padding: 1.2rem;
  margin: 1.25rem 0;
  background: #fff;
}
.document-upload label span {
  font-weight: 400;
}
.document-upload input::file-selector-button {
  font: inherit;
  background: #f7e6b6;
  border: 0;
  padding: 0.5rem 0.7rem;
  margin-right: 0.7rem;
  cursor: pointer;
}
#document-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}
#document-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 0.85rem;
}
#document-list span {
  overflow-wrap: anywhere;
  min-width: 0;
}
#document-list button {
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: underline;
  flex-shrink: 0;
}
#document-feedback:empty {
  display: none;
}

/* Sticky positioning preserves the header's space in the document flow. */
html {
  scroll-padding-top: calc(var(--header-height, 155px) + 16px);
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.skip {
  z-index: 101;
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(var(--header-height, 245px) + 12px);
  }
}

/* A compact brand signature anchors the fixed navigation. */
header {
  padding-top: 0.85rem;
  background: linear-gradient(110deg, #fff 55%, #fffaf0);
}
.brand img {
  padding: 3px;
  background: transparent;
}
.brand-baseline {
  padding-right: 1.6rem;
  border-right: 1px solid #dfcc97;
  font-family: 'Space Grotesk', sans-serif;
}
.brand-baseline span {
  display: block;
  color: var(--muted);
}
.brand-baseline strong {
  display: block;
  color: var(--accent);
}
header > .nav-contact {
  transition:
    background 0.2s,
    transform 0.2s;
}
header > .nav-contact:hover {
  transform: translateY(-1px);
}
header nav a {
  transition:
    background 0.2s,
    color 0.2s;
}
header nav a:hover,
header nav a:focus-visible {
  color: #181818;
  text-decoration: none;
}
.nav-number {
  display: inline-grid;
  place-items: center;
}
@media (max-width: 1000px) and (min-width: 761px) {
  header {
    gap: 0.7rem 1rem;
  }
  .brand-baseline {
    padding-right: 1rem;
  }
  .brand-baseline span {
    font-size: 0.73rem;
  }
  .brand-baseline strong {
    font-size: 1.15rem;
  }
  .brand:after {
    font-size: 1.3rem;
  }
}
@media (max-width: 760px) {
  header {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 1rem;
    padding-top: 0.75rem;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand:after {
    font-size: 1.2rem;
  }
  .brand-baseline {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: end;
    border: 0;
    padding: 0;
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
  }
  .brand-baseline span {
    font-size: 0.72rem;
  }
  .brand-baseline strong {
    font-size: 0.92rem;
  }
  header > .nav-contact {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.68rem;
    padding: 0.6rem 0.65rem;
  }
  header nav {
    gap: 0.2rem 0.6rem;
    padding: 0.45rem 0;
  }
  header nav a {
    padding: 0.25rem 0;
  }
  .nav-number {
    min-width: 1.3rem;
    height: 1.3rem;
  }
}

/* Alternative masthead: clear brand signature and a continuous navigation strip. */
header {
  grid-template-columns: auto 1fr auto;
  gap: 0 2rem;
  padding: 0 5%;
  background: #fff;
  border-bottom: 1px solid #e2d5b4;
  box-shadow: 0 5px 20px #18181808;
}
.brand {
  padding: 1rem 0;
  gap: 1rem;
}
.brand img {
  width: 63px;
  height: 63px;
}
.brand:after {
  font-size: 1.8rem;
  letter-spacing: -0.07em;
}
.brand-baseline {
  justify-self: end;
  text-align: left;
  border: 0;
  border-left: 3px solid var(--brand-gold);
  padding: 0 0 0 1.25rem;
  margin: 0.9rem 0;
  line-height: 1.14;
}
.brand-baseline span {
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-baseline strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 400;
  color: #a78010;
  letter-spacing: -0.035em;
}
header > .nav-contact {
  background: #fff;
  border: 1px solid #c9a443;
  border-radius: 0;
  box-shadow: none;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--ink);
}
header > .nav-contact:hover {
  background: #fbf2d8;
  transform: none;
}
header nav {
  background: #fbf5e6;
  border: 0;
  border-top: 1px solid #e9dcba;
  margin: 0 -5.56%;
  width: 111.12%;
  padding: 0.25rem 5.56%;
  gap: 0;
  align-items: stretch;
}
header nav a {
  position: relative;
  padding: 0.75rem 0.5rem;
  border-radius: 0;
  font-size: 0.78rem;
}
header nav a:after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
header nav a:hover:after,
header nav a:focus-visible:after {
  transform: scaleX(1);
}
header nav a:hover,
header nav a:focus-visible {
  background: transparent;
}
.nav-number {
  background: transparent;
  border-radius: 0;
  min-width: auto;
  height: auto;
  font-size: 0.62rem;
  color: var(--accent);
  margin-right: 0.1rem;
}
@media (max-width: 1000px) and (min-width: 761px) {
  header {
    gap: 0 1rem;
  }
  .brand:after {
    font-size: 1.45rem;
  }
  .brand-baseline {
    padding-left: 0.8rem;
  }
  .brand-baseline span {
    font-size: 0.9rem;
  }
  .brand-baseline strong {
    font-size: 1.4rem;
  }
  header nav a {
    font-size: 0.7rem;
    padding: 0.65rem 0.2rem;
  }
}
@media (max-width: 760px) {
  header {
    grid-template-columns: 1fr auto;
    gap: 0 1rem;
  }
  .brand {
    padding: 0.65rem 0;
    gap: 0.6rem;
  }
  .brand img {
    width: 43px;
    height: 43px;
  }
  .brand:after {
    font-size: 1.2rem;
  }
  .brand-baseline {
    grid-row: 2;
    grid-column: 1/-1;
    justify-self: start;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin: 0 0 0.65rem;
    padding-left: 0.65rem;
  }
  .brand-baseline span {
    font-size: 0.85rem;
  }
  .brand-baseline strong {
    font-size: 1.1rem;
  }
  header > .nav-contact {
    font-size: 0.66rem;
    padding: 0.6rem 0.5rem;
  }
  header nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    gap: 0 0.6rem;
  }
  header nav a {
    padding: 0.35rem 0;
    font-size: 0.73rem;
  }
}

/* Recompose the existing logo as a readable horizontal signature. */
header .brand {
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.95rem 0;
}
header .brand:after {
  content: none;
}
.brand-symbol {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  flex-shrink: 0;
}
header .brand-symbol img {
  display: block;
  width: 54px;
  height: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: initial;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.065em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name > span {
  font-weight: 700;
  margin-left: 0.16em;
}
.brand-name i {
  font-style: normal;
  color: #c99d29;
  margin-left: 0.04em;
}
.brand-descriptor {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 1000px) and (min-width: 761px) {
  .brand-name {
    font-size: 1.5rem;
  }
  .brand-symbol,
  header .brand-symbol img {
    width: 48px;
  }
  .brand-symbol {
    height: 48px;
  }
}
@media (max-width: 760px) {
  header .brand {
    gap: 0.55rem;
    padding: 0.75rem 0;
  }
  .brand-symbol,
  header .brand-symbol img {
    width: 38px;
  }
  .brand-symbol {
    height: 38px;
  }
  .brand-name {
    font-size: 1.23rem;
  }
  .brand-descriptor {
    font-size: 0.43rem;
    letter-spacing: 0.1em;
  }
  .brand-wordmark {
    gap: 0.2rem;
  }
}

/* Preserve the complete code-migration composition on every screen. */
.hero-visual img,
.proposal-panorama img {
  aspect-ratio: 2060/763;
  object-fit: contain;
  object-position: center;
  height: auto;
}

/* Signature contact panel: light canvas, black typography and metallic gold detail. */
#contact.contact-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 1.4rem 4rem;
  padding: 3.5rem 6%;
  background: linear-gradient(110deg, #fff 0%, #fffdf6 60%, #f4e3ae 100%);
  border-top: 4px solid var(--brand-gold);
  border-bottom: 1px solid #d9bf71;
}
#contact.contact-band:after {
  content: '{ }';
  position: absolute;
  right: 1.5%;
  bottom: -3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18rem;
  letter-spacing: -0.12em;
  line-height: 1;
  color: #b88b1510;
  z-index: -1;
  pointer-events: none;
}
#contact.contact-band > .eyebrow {
  grid-column: 1/-1;
  color: #1b1b1b;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
#contact.contact-band > .eyebrow:before {
  content: '';
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, #ad7c16, #edcc70);
}
#contact.contact-band h2 {
  grid-column: 1;
  grid-row: 2/4;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
#contact.contact-band h2 em {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  color: #a17a12;
  letter-spacing: -0.04em;
}
#contact.contact-band > p {
  grid-column: 2;
  align-self: end;
  margin: 0;
  max-width: 29rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #383838;
}
#contact.contact-band > .button {
  grid-column: 2;
  justify-self: start;
  align-self: start;
  margin: 0;
  background: #191919;
  color: #f5d477;
  border: 1px solid #191919;
  border-bottom: 3px solid #c69a30;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 7px 20px #5c47131a;
}
#contact.contact-band > .button:hover {
  background: #30302b;
  color: #ffe6a2;
}
@media (max-width: 760px) {
  #contact.contact-band {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 2.5rem 5%;
  }
  #contact.contact-band h2 {
    grid-column: 1;
    grid-row: auto;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  #contact.contact-band > p,
  #contact.contact-band > .button {
    grid-column: 1;
  }
  #contact.contact-band:after {
    font-size: 13rem;
    bottom: -1rem;
  }
}

.section-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--accent);
  vertical-align: middle;
}
header nav a {
  gap: 0.4rem;
}
header nav .nav-number {
  display: none;
}
.section .section-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 0 !important;
  padding-left: 0 !important;
}
.section-marker .section-icon {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0.48rem;
  border: 1px solid #dfc77c;
  border-radius: 7px;
  background: linear-gradient(135deg, #fffaf0, #f5e6b5);
  color: #80630d;
}
@media (max-width: 760px) {
  header.menu-enhanced nav a {
    gap: 0.8rem;
  }
  header.menu-enhanced nav .section-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .section-marker .section-icon {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.4rem;
  }
}
