* { box-sizing: border-box; }

:root {
  --ink: #17211b;
  --muted: #68736c;
  --line: #dde4df;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --green: #276a4b;
  --green-dark: #1d533a;
  --green-soft: #e7f2eb;
  --orange: #ef8f4e;
  --shadow: 0 18px 45px rgba(29, 55, 40, .07);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 48px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 11px 11px 11px 4px; font-size: 17px; }
.brand-dot { color: var(--orange); }
.desktop-nav { display: flex; gap: 30px; color: #465149; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button { min-height: 44px; padding: 0 20px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 700; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #27362d; }
.button-ghost { background: transparent; }
.button-primary { color: white; background: var(--green); box-shadow: 0 8px 20px rgba(39, 106, 75, .19); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { color: var(--green); background: #fff; border-color: #afc4b6; }
.button-full { width: 100%; }
.icon-button { width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.mobile-menu-button, .mobile-nav { display: none; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 80px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 24px; color: #758078; font-size: 13px; }
.breadcrumb a:hover { color: var(--green); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 26px; }
.project-column { display: grid; gap: 20px; min-width: 0; }
.hero-card, .content-card, .action-card, .client-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card { position: relative; overflow: hidden; padding: 30px 34px 0; }
.hero-card::after { content: ""; position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: #eef5ef; z-index: 0; }
.eyebrow-row, .title-row, .metrics { position: relative; z-index: 1; }
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; color: var(--green-dark); background: var(--green-soft); border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.status-dot { width: 7px; height: 7px; background: #2c9463; border-radius: 50%; box-shadow: 0 0 0 4px rgba(44,148,99,.12); }
.project-ref { color: #8b948e; font-size: 12px; }
.title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 30px 0 31px; }
.category { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 55px); line-height: .98; letter-spacing: -2.6px; }
.save-button { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: #59645d; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.save-button svg { width: 18px; }
.save-button[aria-pressed="true"] { color: var(--green); background: var(--green-soft); border-color: #b9d4c3; }
.save-button[aria-pressed="true"] svg { fill: currentColor; }
.metrics { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; margin: 0 -34px; padding: 20px 34px; border-top: 1px solid var(--line); background: #fbfcfb; }
.metric { display: flex; align-items: center; gap: 13px; padding-right: 15px; }
.metric + .metric { padding-left: 22px; border-left: 1px solid var(--line); }
.metric svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.metric span { display: flex; flex-direction: column; gap: 3px; color: #7b847e; font-size: 11px; }
.metric strong { color: var(--ink); font-size: 14px; }

.content-card { padding: 30px 34px; }
.content-card h2, .client-card h2 { margin: 0 0 20px; font-size: 19px; letter-spacing: -.35px; }
.project-description p { margin: 0 0 15px; color: #505c54; font-size: 15px; line-height: 1.75; }
.more-content { display: none; }
.more-content.expanded { display: block; }
.text-button { padding: 4px 0; color: var(--green); border: 0; background: none; font-weight: 800; cursor: pointer; }
.skills { display: flex; flex-wrap: wrap; gap: 9px; }
.skills span { padding: 9px 13px; color: #365344; background: #f0f5f1; border: 1px solid #dce9df; border-radius: 9px; font-size: 13px; font-weight: 700; }
.deliverable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deliverable { display: flex; gap: 14px; padding: 18px; background: #fafbfa; border: 1px solid #e6ebe7; border-radius: 13px; }
.deliverable-number { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .7px; }
.deliverable h3 { margin: 0 0 5px; font-size: 14px; }
.deliverable p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.action-card { padding: 26px; }
.budget-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.budget { margin: 6px 0 10px; font-size: 24px; font-weight: 850; letter-spacing: -.8px; }
.budget span { color: #8b948e; font-size: 12px; font-weight: 500; }
.action-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.action-card .button { width: 100%; margin-top: 9px; }
.reassurance { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: #718078; font-size: 11px; }
.reassurance svg { width: 16px; color: var(--green); }
.client-card { padding: 25px; }
.card-heading { display: flex; justify-content: space-between; }
.verified { color: var(--green); }
.verified svg { width: 22px; }
.client-profile { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2e7555, #193e2d); border-radius: 50%; font-size: 13px; font-weight: 800; }
.client-profile div:last-child { display: flex; flex-direction: column; gap: 4px; }
.client-profile strong { font-size: 14px; }
.client-profile span { color: var(--muted); font-size: 11px; }
.client-details { margin: 18px 0 0; }
.client-details div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12px; }
.client-details dt { color: var(--muted); }
.client-details dd { margin: 0; font-weight: 700; }
.report-row { text-align: center; }
.report-button { display: inline-flex; align-items: center; gap: 8px; color: #89928c; border: 0; background: none; font-size: 11px; cursor: pointer; }
.report-button svg { width: 15px; }
.mobile-offer-bar { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(14, 25, 18, .66); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: modal-in .22s ease-out; }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; padding: 9px; border: 0; border-radius: 50%; background: #f2f4f2; cursor: pointer; }
.modal-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; color: var(--green); background: var(--green-soft); border-radius: 14px; }
.modal-icon svg { width: 25px; }
.modal h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.modal-intro { margin: 10px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal label { display: block; margin: 15px 0 7px; font-size: 12px; font-weight: 800; }
.modal input, .modal textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fbfcfb; border: 1px solid #ced7d0; border-radius: 10px; outline: none; resize: vertical; }
.modal input:focus, .modal textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,106,75,.1); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 38px; }
.input-suffix span { position: absolute; right: 14px; top: 13px; color: var(--muted); }
.modal form .button { margin-top: 22px; }
.success-message { text-align: center; padding: 8px 0 0; }
.success-message > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--green); border-radius: 50%; font-size: 25px; }
.success-message h3 { margin: 0; font-size: 22px; }
.success-message p { margin: 9px 0 24px; color: var(--muted); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 12px 18px; color: white; background: var(--ink); border-radius: 10px; opacity: 0; pointer-events: none; font-size: 13px; transition: .25s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .desktop-nav, .publish-button { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-nav { position: absolute; left: 16px; right: 16px; top: 68px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .mobile-nav.open { display: grid; gap: 4px; }
  .mobile-nav a { padding: 11px; font-size: 14px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .action-card { display: none; }
  .report-row { display: none; }
  .mobile-offer-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(27,47,35,.08); }
  .mobile-offer-bar > div { display: flex; flex-direction: column; gap: 2px; }
  .mobile-offer-bar span { color: var(--muted); font-size: 10px; }
  .mobile-offer-bar strong { font-size: 14px; }
  .page-shell { padding-bottom: 110px; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .login-button { display: none; }
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .breadcrumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero-card { padding: 23px 20px 0; border-radius: 15px; }
  .title-row { align-items: start; padding: 24px 0 25px; }
  h1 { font-size: 39px; letter-spacing: -2px; }
  .save-button { width: 42px; height: 42px; padding: 11px; }
  .save-button span { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; margin: 0 -20px; padding: 17px 20px; }
  .metric { padding: 0; }
  .metric + .metric { padding-left: 14px; }
  .metric:last-child { display: none; }
  .metric svg { width: 19px; }
  .metric strong { font-size: 12px; }
  .content-card { padding: 24px 21px; border-radius: 15px; }
  .project-description p { font-size: 14px; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .client-card { border-radius: 15px; }
  .modal { padding: 28px 22px; }
  .mobile-offer-bar .button { min-height: 42px; padding: 0 16px; }
}

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