:root {
  --ink: #162321;
  --muted: #596562;
  --paper: #f7f6f1;
  --paper-deep: #eceae1;
  --white: #ffffff;
  --line: #d8d7ce;
  --green: #123c34;
  --green-deep: #082a25;
  --gold: #c4a469;
  --rose: #a84d68;
  --max: 1180px;
  --shadow: 0 18px 42px rgba(10, 37, 32, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.58 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .05;
  background: url("../pictures/black-rose-castle-home.png") center / cover no-repeat;
  filter: grayscale(.3) saturate(.65);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.site-wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, .94);
  box-shadow: 0 8px 24px rgba(10, 37, 32, .06);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; min-height: 110px; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-brand img { width: 230px; height: 88px; object-fit: contain; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 25px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-links a, .nav-login, .nav-user {
  color: #35433f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-login:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-user { display: inline-flex; min-width: 114px; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid #b9c7be; border-radius: 4px; color: var(--green); background: rgba(255,255,255,.46); text-decoration: none; line-height: 1.16; transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.nav-user:hover { border-color: var(--green); background: #e8eee9; box-shadow: 0 5px 14px rgba(10,37,32,.09); transform: translateY(-1px); }
.nav-user:focus-visible { outline: 3px solid rgba(171,73,103,.36); outline-offset: 3px; border-color: var(--rose); background: #fff; }
.nav-user-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--white);
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { border-color: var(--green-deep); background: var(--green-deep); transform: translateY(-1px); }
.button-quiet { color: var(--green); background: transparent; }
.button-quiet:hover { color: var(--green); background: #e8eee9; }
.button-light { color: var(--white); border-color: rgba(255,255,255,.75); background: transparent; }
.button-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.12); }
.menu-toggle { display: none; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 3px; color: var(--green); background: transparent; font: 800 13px/1 inherit; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.menu-toggle:hover { border-color: var(--green); background: #e8eee9; }
.menu-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--green-deep); background: #f1eadb; }
.menu-cog { width: 19px; height: 19px; flex: 0 0 auto; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.menu-toggle[aria-expanded="true"] .menu-cog { transform: rotate(120deg); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 108px 0 118px;
  color: var(--white);
  background: var(--green-deep);
}
.hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: var(--hero-image, url("../pictures/black-rose-castle-home.png")) center / cover no-repeat; opacity: var(--hero-image-opacity, .14); filter: grayscale(.15) saturate(.7); }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7, 35, 30, .99), rgba(7, 35, 30, .95) 54%, rgba(7, 35, 30, .71)); }
.hero .site-wrap { position: relative; }
.eyebrow { margin: 0 0 16px; color: #dfc792; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { max-width: 860px; margin: 0; font: normal clamp(44px, 6.5vw, 75px)/1.03 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero-copy { max-width: 655px; margin: 23px 0 0; color: rgba(255,255,255,.83); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.hero-note { margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 750; }

.section { padding: 88px 0; background: rgba(247, 246, 241, .89); }
.section-alt { background: rgba(236, 234, 225, .84); }
.section-dark { position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--green-deep); }
.section-dark::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7,35,30,.98), rgba(7,35,30,.87)), var(--section-image, url("../pictures/code-services-background.png")) center / cover no-repeat; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2, .content-title { margin: 0 0 12px; color: var(--green); font: normal clamp(33px, 4.4vw, 52px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.028em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.section-dark .section-head h2, .section-dark .content-title { color: var(--white); }
.section-dark .section-head p { color: rgba(255,255,255,.73); }
.content-title { font-size: clamp(30px, 3.5vw, 44px); }
.content-copy { color: var(--muted); font-size: 17px; }
.content-copy p:first-child { margin-top: 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 29px; border: 1px solid var(--line); background: rgba(255,255,255,.92); }
.card-dark { border-color: rgba(255,255,255,.17); color: var(--white); background: rgba(255,255,255,.07); }
.card-link { display: flex; min-height: 100%; flex-direction: column; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-link:hover { border-color: rgba(18,60,52,.5); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.label { color: var(--rose); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.card-dark .label { color: #dfc792; }
.card h3 { margin: 13px 0 9px; color: var(--green); font: normal 28px/1.1 Georgia, "Times New Roman", serif; }
.card-dark h3 { color: var(--white); }
.card p { margin: 0; color: var(--muted); }
.card-dark p { color: rgba(255,255,255,.76); }
.card .link-arrow { margin-top: auto; padding-top: 22px; color: var(--green); font-size: 13px; font-weight: 900; }

.split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 62px; align-items: start; }
.feature-panel { padding: 34px; border-left: 4px solid var(--gold); color: var(--white); background: var(--green); box-shadow: var(--shadow); }
.feature-panel .label { color: #dfc792; }
.feature-panel h2 { margin: 11px 0; font: normal 36px/1.08 Georgia, "Times New Roman", serif; }
.feature-panel p { margin: 0; color: rgba(255,255,255,.77); }
.stack { display: grid; gap: 14px; }
.info-row { padding: 25px 27px; border: 1px solid var(--line); background: rgba(255,255,255,.86); }
.info-row h3 { margin: 8px 0 7px; color: var(--green); font: normal 27px/1.08 Georgia, "Times New Roman", serif; }
.info-row p { margin: 0; color: var(--muted); }
.steps { counter-reset: steps; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.19); }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.19); }
.step::before { counter-increment: steps; content: "0" counter(steps); color: #dfc792; font: normal 22px Georgia, serif; }
.step h3 { margin: 0 0 5px; color: var(--white); font-size: 17px; }
.step p { margin: 0; color: rgba(255,255,255,.7); }

.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.price-card { display: flex; min-height: 100%; flex-direction: column; padding: 27px; border: 1px solid var(--line); background: rgba(255,255,255,.92); }
.price-card.featured { border-color: var(--green); color: var(--white); background: var(--green); }
.price-card h3 { min-height: 58px; margin: 12px 0 14px; color: var(--green); font: normal 27px/1.05 Georgia, "Times New Roman", serif; }
.price-card.featured h3 { color: var(--white); }
.price { margin: 0 0 15px; color: var(--rose); font: normal 34px/1 Georgia, "Times New Roman", serif; }
.price-card.featured .price { color: #e3cb9a; }
.price-card p { margin: 0; color: var(--muted); }
.price-card.featured p { color: rgba(255,255,255,.76); }
.price-card .button { margin-top: 25px; }
.price-card.featured .button { color: var(--green); border-color: var(--white); background: var(--white); }
.price-card.featured .button:hover { color: var(--white); background: transparent; }
.list { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.list li { position: relative; padding-left: 16px; }
.list li::before { position: absolute; left: 0; color: var(--rose); content: "•"; }
.price-card.featured .list { color: rgba(255,255,255,.75); }
.price-card.featured .list li::before { color: #e3cb9a; }

.comparison { width: 100%; overflow: hidden; border: 1px solid var(--line); border-collapse: collapse; background: rgba(255,255,255,.91); }
.comparison th, .comparison td { padding: 17px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--green); background: #edf0ea; font-size: 13px; }
.comparison td { color: var(--muted); }
.comparison strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }

.case-study { display: grid; grid-template-columns: 140px 1fr; gap: 25px; align-items: start; padding: 29px 0; border-top: 1px solid var(--line); }
.case-study:last-child { border-bottom: 1px solid var(--line); }
.case-number { color: var(--rose); font: normal 42px/1 Georgia, "Times New Roman", serif; }
.case-study h2 { margin: 0 0 8px; color: var(--green); font: normal clamp(28px, 3vw, 39px)/1.08 Georgia, "Times New Roman", serif; }
.case-study p { max-width:760px; margin: 0; color: var(--muted); font-size: 17px; }
.case-study .case-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 17px; }
.text-link { color: var(--green); font-size: 14px; font-weight: 900; text-underline-offset: 4px; }
.text-link:hover { color: var(--rose); }
.text-link-button { border: 0; padding: 0; background: transparent; font-family: inherit; cursor: pointer; text-decoration: underline; }

.media-frame { overflow: hidden; background: var(--green-deep); box-shadow: var(--shadow); }
.media-frame video { width: 100%; min-height: 320px; object-fit: cover; }
.quote { margin: 0; padding: 28px 30px; border-left: 4px solid var(--gold); color: var(--green); background: var(--paper-deep); font: normal 26px/1.2 Georgia, "Times New Roman", serif; }
.note { margin-top: 22px; padding: 20px 22px; border-left: 3px solid var(--gold); color: var(--green); background: #edf0ea; }
.note p { margin: 0; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(270px, .84fr); gap: 42px; align-items: start; }
.form-card { padding: 31px; background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label, .check { color: var(--green); font-size: 13px; font-weight: 900; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #c8cbc4; border-radius: 2px; color: var(--ink); background: var(--white); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 20px 0; font-weight: 650; }
.check input { width: auto; margin-top: 4px; }
.contact-preference { margin: 19px 0; padding: 0; border: 0; }
.contact-preference legend { margin-bottom: 9px; color: var(--green); font-size: 13px; font-weight: 900; }
.contact-preference-options { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-preference-options label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #c8cbc4; border-radius: 3px; color: var(--green); background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.contact-preference-options label:has(input:checked) { border-color: var(--green); background: #e8eee9; }
.contact-preference-options input { width: auto; margin: 0; accent-color: var(--green); }
.form-status { display: none; margin: 0 0 17px; padding: 13px 15px; border-left: 3px solid var(--rose); color: #642d42; background: #f3e8ea; }
.form-status.is-visible { display: block; }
.form-status.error { border-left-color: #842e2e; color: #6e2222; background: #f6e7e7; }
.form-notice { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.form-warning { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gold); color: var(--green); background: #f2eee4; font-size: 13px; font-weight: 700; }

.site-footer { padding: 27px 0; color: rgba(255,255,255,.7); background: #071e1a; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-copy { display: grid; gap: 3px; max-width: 590px; }
.footer-statement { color: rgba(255,255,255,.78); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.footer-links a { color: var(--white); text-underline-offset: 4px; }
.footer-separator { color: rgba(255,255,255,.45); }

body.auth-modal-open { overflow: hidden; }
.auth-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 27, 24, .74); backdrop-filter: blur(7px); }
.auth-modal-card { position: relative; display: grid; grid-template-columns: minmax(245px, .78fr) minmax(370px, 1.22fr); grid-template-rows: minmax(0, 1fr); width: min(890px, 100%); max-height: min(88dvh, 760px); min-height: 0; overflow: hidden; border: 1px solid rgba(227, 203, 154, .58); background: var(--paper); box-shadow: 0 28px 86px rgba(0, 0, 0, .34); }
.auth-modal-art { position: relative; min-height: 0; color: var(--white); background: url("../pictures/black-rose-castle-home.png") center / cover no-repeat; }
.auth-modal-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(5, 24, 36, .34), rgba(5, 24, 26, .9)); }
.auth-modal-art > div { position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; }
.auth-modal-art span { display: block; margin-bottom: 8px; color: #e3cb9a; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.auth-modal-art strong { display: block; max-width: 220px; font: normal clamp(30px, 4vw, 43px)/1.04 Georgia, "Times New Roman", serif; }
.auth-modal-content { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px; }
.auth-modal-close { position: absolute; top: 16px; right: 18px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.auth-modal-tabs { display: flex; gap: 20px; padding-right: 42px; border-bottom: 1px solid var(--line); }
.auth-modal-tabs button { padding: 0 0 11px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font: 900 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.auth-modal-tabs button[aria-selected="true"] { border-bottom-color: var(--rose); color: var(--green); }
.auth-modal-panel { padding-top: 28px; }
.auth-modal-panel .label { display: block; margin-bottom: 10px; }
.auth-modal-panel h2 { margin: 0; color: var(--green); font: normal clamp(32px, 4.3vw, 46px)/1.05 Georgia, "Times New Roman", serif; }
.auth-modal-panel > p:not(.label) { margin: 12px 0 23px; color: var(--muted); }
.auth-modal-form { display: grid; gap: 13px; }
.auth-modal-form label { display: grid; gap: 6px; color: var(--green); font-size: 13px; font-weight: 900; }
.auth-modal-form label small { color: var(--muted); font-weight: 600; }
.auth-modal-form input { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #c8cbc4; border-radius: 2px; color: var(--ink); background: var(--white); font: inherit; }
.auth-modal-form select, .auth-modal-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #c8cbc4; border-radius: 2px; color: var(--ink); background: var(--white); font: inherit; }
.auth-modal-form textarea { min-height: 116px; resize: vertical; }
.auth-modal-form .button { width: 100%; margin-top: 5px; }
.auth-modal-flash { margin: 0 0 18px; padding: 11px 13px; border-left: 4px solid var(--green); background: #eef4ef; color: var(--green); font-size: 14px; font-weight: 800; }
.auth-modal-flash.error { border-color: var(--rose); background: #f8edf0; color: #74334a; }
.auth-modal-footnote { margin: 18px 0 0 !important; font-size: 14px; }
.auth-modal-footnote a { color: var(--green); font-weight: 900; text-underline-offset: 4px; }
.privacy-request-form { margin-top: 22px; }
.privacy-request-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-request-note { margin: 0; color: var(--muted); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(14px) scale(.987); transition: opacity .62s ease, transform .62s cubic-bezier(.22,.8,.24,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 1050px) {
  .header-inner { min-height: 88px; }
  .site-brand img { width: 154px; height: 62px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 88px; right: 20px; left: 20px; align-items: stretch; flex-direction: column; gap: 16px; padding: 18px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-links, .nav-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .nav-links a, .nav-login { padding: 4px 0; }
  .nav-user { width: 100%; padding: 9px 12px; }
  .nav-actions .button { width: 100%; }
  .split, .form-layout { gap: 36px; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-wrap { width: calc(100% - 28px); }
  .hero { padding: 74px 0 82px; }
  .hero::after { background: linear-gradient(90deg, rgba(7,35,30,.98), rgba(7,35,30,.8)); }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .split, .form-layout, .form-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 29px; }
  .case-study { grid-template-columns: 1fr; gap: 10px; }
  .case-number { font-size: 31px; }
  .media-frame video { min-height: 220px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 10px; }
  .comparison { min-width: 620px; }
  .auth-modal { align-items: end; padding: 0; }
  .auth-modal-card { grid-template-columns: 1fr; width: 100%; max-height: 94dvh; border-right: 0; border-bottom: 0; border-left: 0; }
  .auth-modal-art { min-height: 145px; }
  .auth-modal-art > div { right: 21px; bottom: 17px; left: 21px; }
  .auth-modal-art strong { max-width: 300px; font-size: 31px; }
  .auth-modal-content { padding: 27px 22px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card-link, .reveal, .menu-toggle, .menu-cog { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
