:root {
  --bg: #f4f1eb;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffaf1;
  --surface-warm: rgba(252, 247, 239, 0.96);
  --page-width: min(1200px, calc(100% - 28px));
  --section-space: clamp(56px, 7vw, 84px);
  --panel-pad: clamp(22px, 3vw, 34px);
  --panel-radius: clamp(24px, 2.4vw, 34px);
  --grid-gap: clamp(18px, 2vw, 24px);
  --line: rgba(7, 43, 87, 0.12);
  --text: #173d6b;
  --text-soft: #4b596c;
  --gold: #c9a245;
  --gold-deep: #9b7420;
  --navy: #0d3f78;
  --navy-deep: #082d56;
  --shadow: 0 30px 80px rgba(13, 63, 120, 0.1);
  --shadow-soft: 0 18px 40px rgba(13, 63, 120, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 162, 69, 0.18), transparent 24%),
    radial-gradient(circle at right top, rgba(13, 63, 120, 0.12), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(13, 63, 120, 0.08), transparent 35%),
    linear-gradient(180deg, #f7f3eb 0%, #f7f4ef 44%, #f3efe6 100%);
}

.site-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 63, 120, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 63, 120, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 88%);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(201, 162, 69, 0.8);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 20px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 18px;
}

.site-header,
main {
  width: var(--page-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(252, 248, 239, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 168px;
  max-width: 40vw;
}

.brand-copy {
  display: none;
}

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

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(13, 63, 120, 0.06);
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--grid-gap);
  align-items: stretch;
  padding: 34px 0 18px;
}

.hero-image-wrap,
.service-card,
.pricing-card,
.case-study,
.info-panel,
.contact-section,
.value-strip,
.page-hero-content,
.page-hero-image,
.section-shell,
.portfolio-link-card,
.cta-band,
.site-footer {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 245, 236, 0.9));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card::before,
.pricing-card::before,
.info-panel::before,
.contact-section::before,
.value-strip::before,
.page-hero-content::before,
.section-shell::before,
.cta-band::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 69, 0.7), rgba(13, 63, 120, 0.24), transparent 75%);
}

.service-card::after,
.pricing-card::after,
.info-panel::after,
.contact-section::after,
.value-strip::after,
.page-hero-content::after,
.section-shell::after,
.cta-band::after,
.site-footer::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -120px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 69, 0.18), transparent 68%);
  z-index: -1;
}

.hero-image-wrap {
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--panel-radius);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.94), rgba(246, 241, 232, 0.94)),
    radial-gradient(circle at top right, rgba(201, 162, 69, 0.14), transparent 36%);
  box-shadow: var(--shadow);
}

.hero-content h1 {
  max-width: 11.5ch;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 69, 0.7), rgba(13, 63, 120, 0.24), transparent 75%);
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -130px;
  right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 69, 0.16), transparent 70%);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.9rem);
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
}

.hero-text,
.section-copy p,
.service-card p,
.pricing-intro p,
.pricing-columns li,
.case-copy span,
.info-panel p,
.contact-copy p {
  color: var(--text-soft);
  line-height: 1.75;
}

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

.hero-actions .button {
  min-width: 190px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d1b062 100%);
  color: var(--navy-deep);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(13, 63, 120, 0.12);
  color: var(--navy);
}

.hero-points,
.pricing-columns ul {
  padding-left: 18px;
  margin: 0;
}

.hero-points li,
.pricing-columns li {
  margin-bottom: 10px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 10px 0 0;
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
}

.value-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.value-strip span {
  color: var(--text-soft);
  line-height: 1.6;
}

.section {
  padding: var(--section-space) 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--grid-gap);
  align-items: start;
}

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

.service-card {
  min-height: 100%;
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.info-panel:hover,
.portfolio-link-card:hover,
.case-study:hover {
  transform: translateY(-4px);
}

.service-card.highlight {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(241, 234, 217, 0.96)),
    radial-gradient(circle at top right, rgba(201, 162, 69, 0.12), transparent 42%);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(13, 63, 120, 0.08);
  color: var(--navy);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.pricing-section {
  display: grid;
  gap: 22px;
}

.pricing-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--grid-gap);
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
}

.price-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
}

.price-badge strong {
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.price-badge span {
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

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

.pricing-columns > div,
.detail-grid > div {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(13, 63, 120, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pricing-columns h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.portfolio-section {
  display: grid;
  gap: var(--grid-gap);
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: var(--grid-gap);
}

.case-study {
  overflow: hidden;
  border-radius: var(--panel-radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-large {
  grid-row: span 2;
}

.case-study img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.case-large img {
  height: 100%;
  min-height: 580px;
}

.case-copy {
  padding: var(--panel-pad);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 235, 0.94));
}

.case-copy p {
  margin: 0 0 10px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.case-copy h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.showcase-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.info-panel {
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dark-panel {
  background: linear-gradient(135deg, var(--navy) 0%, #335f8f 100%);
}

.dark-panel,
.dark-panel p,
.dark-panel h2,
.dark-panel .eyebrow {
  color: white;
}

.dark-panel .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: var(--grid-gap);
  margin-bottom: 48px;
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
}

.contact-link {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.field-full,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(13, 63, 120, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(13, 63, 120, 0.28);
  box-shadow: 0 0 0 4px rgba(13, 63, 120, 0.08);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
  color: var(--navy);
}

.form-status.is-error {
  color: #9a2f2f;
}

.form-status.is-success {
  color: #1d6a3a;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .pricing-card,
  .split-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .gallery-grid,
  .pricing-columns,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-large {
    grid-row: auto;
  }

  .case-large img,
  .case-study img {
    height: 320px;
    min-height: 0;
  }

  .showcase-header {
    align-items: start;
    flex-direction: column;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  main {
    width: min(100% - 18px, 1200px);
  }

  .site-header {
    flex-wrap: wrap;
    top: 10px;
  }

  .brand img {
    width: 138px;
  }

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

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

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

  .hero-image-wrap,
  .hero-content,
  .service-card,
  .pricing-card,
  .case-study,
  .info-panel,
  .contact-section,
  .value-strip {
    border-radius: 24px;
  }

  .hero-content,
  .contact-section,
  .pricing-card {
    padding: 22px;
  }

  .hero-image-wrap {
    min-height: 340px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

.site-nav a.is-current {
  color: var(--navy-deep);
  background: rgba(13, 63, 120, 0.08);
}

.page-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--grid-gap);
  align-items: stretch;
  padding: 34px 0 0;
}

.page-hero-content,
.section-shell,
.cta-band {
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.94), rgba(246, 241, 232, 0.94)),
    radial-gradient(circle at top right, rgba(201, 162, 69, 0.14), transparent 36%);
}

.page-hero-content h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.page-hero-content .hero-text {
  max-width: 58ch;
}

.page-hero-image {
  overflow: hidden;
  border-radius: var(--panel-radius);
  min-height: 440px;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-shell {
  display: grid;
  gap: 18px;
}

.section-shell p,
.cta-band p {
  color: var(--text-soft);
  line-height: 1.75;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.detail-grid h3,
.portfolio-link-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.detail-grid p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.detail-grid ul,
.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-grid li,
.detail-list li {
  margin-bottom: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.bullet-columns .section-shell {
  gap: 28px;
}

.portfolio-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.portfolio-link-card {
  display: block;
  overflow: hidden;
  border-radius: var(--panel-radius);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portfolio-link-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.portfolio-link-card div {
  padding: var(--panel-pad);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 235, 0.94));
}

.portfolio-link-card p,
.text-link {
  color: var(--gold-deep);
}

.portfolio-link-card p {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.portfolio-link-card span {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.text-link:hover {
  color: var(--navy-deep);
  transform: translateX(2px);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.site-footer {
  width: var(--page-width);
  margin: 22px auto 40px;
  padding: var(--panel-pad);
  border-radius: var(--panel-radius);
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: var(--grid-gap);
  align-items: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer span {
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 980px) {
  .page-hero,
  .detail-grid,
  .portfolio-link-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .site-footer {
    align-items: start;
  }

  .cta-band {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .page-hero-content,
  .section-shell,
  .cta-band {
    padding: 22px;
    border-radius: 24px;
  }

  .page-hero-image,
  .portfolio-link-card,
  .site-footer {
    border-radius: 24px;
  }

  .page-hero-image {
    min-height: 300px;
  }

  .site-footer {
    width: min(100% - 18px, 1200px);
    padding: 20px;
  }

  .hero-content h1,
  .page-hero-content h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  body:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
