@font-face { font-family: "EB Garamond"; src: url(fonts/ebgaramond-400.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/ebgaramond-500.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/ebgaramond-400i.ttf); font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-500.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-600.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-500i.ttf); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F1E8; --card: #FAF8F4; --tint: #F2EDE3; --ink: #262421; --ink-2: #4A453D; --muted: #8B8378;
  --faint: #B8B0A2; --rule: #E5DECF; --rule-2: #EFE9DC; --field: #DDD4C2; --bronze: #96703F; --bronze-2: #6E5230;
  --gold: #C4A87C; --light: #F0EBE1; --ok: #5E6E4E; --warn: #9A4B33;
  --serif: "EB Garamond", Georgia, serif; --display: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
a { color: var(--bronze); } a:hover { color: var(--bronze-2); }
.caps { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 500; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.sr { position: absolute; left: -9999px; }

/* top bar */
.bar { background: var(--ink); color: var(--light); display: flex; align-items: center; justify-content: space-between;
       padding: 20px 64px; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 16px; text-decoration: none; color: inherit; }
.brand .word { font-family: var(--display); font-size: 20px; letter-spacing: .3em; }
.brand .tag { font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .18em; align-items: center; flex-wrap: wrap; }
.nav a, .nav button { color: #B8B0A2; text-decoration: none; background: none; border: 0; font: inherit; letter-spacing: inherit;
                      cursor: pointer; padding: 0 0 3px; text-transform: uppercase; }
.nav a:hover, .nav button:hover { color: var(--light); }
.nav a.on { color: var(--light); border-bottom: 1px solid var(--gold); }
.nav form { margin: 0; }
.switch select { background: transparent; color: var(--light); border: 1px solid #4A453D; font: inherit; padding: 4px 8px; }

main { max-width: 1440px; margin: 0 auto; }
.head { padding: 64px 64px 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head h1 { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.1; margin: 12px 0 0; }
.kicker { font-size: 13px; letter-spacing: .3em; color: var(--bronze); text-transform: uppercase; }
.sub { font-size: 15px; color: var(--muted); margin-top: 8px; letter-spacing: .08em; }
.architect { text-align: right; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.card { background: var(--card); border: 1px solid var(--rule); padding: 40px 48px; }
.wrap { margin: 0 64px 48px; }
.cols { margin: 0 64px 48px; display: flex; gap: 40px; align-items: flex-start; }
.cols > .card:first-child { flex: 1.4; } .cols > .card:last-child { flex: 1; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; gap: 16px; }
.link-caps { font-size: 13px; letter-spacing: .18em; color: var(--bronze); text-decoration: none; text-transform: uppercase; }

/* phases */
.phases { display: flex; align-items: flex-start; }
.phase { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.phase .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 1px solid var(--field);
              display: flex; align-items: center; justify-content: center; }
.phase.done .dot { background: var(--bronze); border: 0; }
.phase.now .dot { border: 2px solid var(--bronze); }
.phase .name { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phase.done .name, .phase.now .name { color: var(--ink); } .phase.now .name { font-weight: 500; }
.now-tag { font-size: 13px; color: var(--bronze); font-style: italic; font-family: var(--display); }
.step-side .now-tag { font-size: 17px; }
.phase-line { flex: 0 1 90px; height: 1px; background: var(--field); margin-top: 9px; }
.phase-line.done { background: var(--bronze); }
.tick { width: 10px; height: 10px; }

/* rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-2); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 0; }
a.row:hover .row-title { color: var(--bronze); }
.row-icon { width: 20px; height: 20px; flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; }
.row-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.row-act { font-size: 12px; letter-spacing: .2em; color: var(--bronze); text-transform: uppercase; white-space: nowrap; }
.row.old { opacity: .55; }
.status { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--bronze);
          display: flex; align-items: center; justify-content: center; }
.status.done { background: var(--bronze); border: 0; }
.status.todo { border: 1px solid var(--field); }
.badge { display: inline-block; font-size: 10px; letter-spacing: .2em; color: var(--card); background: var(--bronze);
         padding: 2px 7px 1px; margin-left: 8px; vertical-align: 2px; }
.badge.grey { background: var(--faint); }
.note { margin-top: 28px; background: var(--tint); padding: 20px 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.note em { font-family: var(--display); font-size: 17px; }
.phase-group { margin-bottom: 40px; }
.phase-group .caps { margin-bottom: 4px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.phase-group .caps b { color: var(--bronze); font-weight: 400; }

/* process guide */
.prose { max-width: 760px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.65; }
.prose .lede { font-size: 20px; color: var(--ink); line-height: 1.6; }
.prose h3 { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--bronze); margin: 32px 0 10px; }
.prose h3 .muted { letter-spacing: .1em; text-transform: none; font-style: italic; font-family: var(--display); font-size: 15px; }
.head .prose p { margin-top: 18px; }
a.phase { text-decoration: none; color: inherit; }
a.phase:hover .name { color: var(--bronze); }
.step { display: flex; gap: 56px; scroll-margin-top: 24px; }
.step.now { border-left: 3px solid var(--bronze); }
.step-side { flex: 0 0 220px; }
.step-num { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--gold); }
.step-side h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 12px 0 10px; }
.step-body { flex: 1; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 4px 0 16px; }
.ticks li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--rule-2); color: var(--ink-2); line-height: 1.5; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 1px; background: var(--bronze); }
.sheet { background: var(--tint); padding: 24px 28px; margin: 28px 0 8px; }
.sheet .caps { margin-bottom: 10px; }
.sheet-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px;
              counter-reset: sheet; }
.sheet-list li { counter-increment: sheet; padding: 9px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; }
.sheet-list li::before { content: counter(sheet, decimal-leading-zero); font-size: 11px; letter-spacing: .12em; color: var(--bronze); min-width: 22px; }
.complete { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 28px !important; }
.complete em { font-family: var(--display); font-size: 19px; color: var(--ink); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 32px; }
.more h2 { font-family: var(--display); font-weight: 500; font-size: 28px; margin: 0 0 16px; }
.numbered { padding-left: 22px; margin: 0; color: var(--ink-2); line-height: 1.6; }
.numbered li { padding: 6px 0 6px 6px; }
.numbered li::marker { color: var(--bronze); font-family: var(--display); }
.closing { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* forms */
label.f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
label.f > span { font-size: 12px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; line-height: 1.5; }
label.f > span.q { text-transform: none; letter-spacing: .02em; font-size: 16px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%; min-height: 52px; background: #fff; border: 1px solid var(--field); padding: 12px 16px; font: inherit;
  font-size: 17px; color: var(--ink); border-radius: 0; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--bronze); }
::placeholder { color: var(--faint); font-style: italic; font-family: var(--display); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; background: var(--ink);
       color: var(--light); border: 0; font: inherit; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
       cursor: pointer; text-decoration: none; }
.btn:hover { background: #3A3631; color: var(--light); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; border: 1px solid var(--field); background: #fff; padding: 9px 16px; font-size: 16px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--bronze); }
.alert { background: #F6E9E2; border-left: 3px solid var(--warn); padding: 14px 18px; margin-bottom: 24px; font-size: 16px; }
.okmsg { background: #ECEFE4; border-left: 3px solid var(--ok); padding: 14px 18px; margin-bottom: 24px; font-size: 16px; }

/* sign in */
.signin { min-height: 100vh; display: flex; background: var(--paper); }
.signin .photo { flex: 1; position: relative; isolation: isolate; margin: 0; background: var(--paper);
                 padding: 7vh 5vw 9vh; border-right: 1px solid var(--rule); }
/* Match the original image's proportions, masking only its handwritten label below the drawing. */
.signin .photo::before { content: ""; position: absolute; inset: 7vh 5vw 9vh; pointer-events: none;
                         background: url(signin-cathedral-sevilla.png) center/contain no-repeat; mix-blend-mode: multiply;
                         mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1402' height='2550' viewBox='0 0 1402 2550'%3E%3Cpath fill='white' d='M0 0H1402V2250H0Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.signin .photo figcaption { position: absolute; left: 5vw; bottom: 4vh; font-family: var(--display); font-style: italic;
                            font-size: 15px; color: var(--muted); }
.signin .panel { flex: 0 0 620px; max-width: 100%; background: var(--card); display: flex; flex-direction: column; align-items: center;
                 justify-content: center; gap: 26px; padding: 48px 90px; text-align: center; }
.signin .mark { font-family: var(--display); font-size: 30px; letter-spacing: .34em; padding-left: .34em; font-weight: 500; }
.signin .mark small { display: block; font-family: var(--serif); font-size: 11px; letter-spacing: .52em; color: var(--muted); margin-top: 4px; }
.signin .rule { width: 48px; height: 1px; background: var(--bronze); }
.signin form { width: 100%; text-align: left; }
.signin .btn { width: 100%; }
.code-input { letter-spacing: .5em; font-size: 26px !important; text-align: center; }

/* survey */
.survey-intro { max-width: 760px; }
.survey-sec { margin-bottom: 32px; }
.survey-sec h2 { font-family: var(--display); font-size: 26px; font-weight: 500; margin: 0 0 24px; }
.savebar { position: sticky; bottom: 0; background: rgba(245,241,232,.96); border-top: 1px solid var(--rule); padding: 16px 64px;
           display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
[data-hidden="1"] { display: none; }

/* document pages */
.pages { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.pages img { width: 100%; max-width: 980px; background: #fff; box-shadow: 0 1px 3px rgba(38,36,33,.18); display: block; }
.pages.drawing img { max-width: 1340px; }
.docbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sigpad { width: 100%; height: 180px; background: #fff; border: 1px solid var(--field); touch-action: none; display: block; cursor: crosshair; }
.sigrow { display: flex; gap: 20px; flex-wrap: wrap; }
.sigrow > * { flex: 1 1 220px; }
.signed-mark { max-height: 70px; }

footer.foot { padding: 32px 64px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .16em; color: var(--muted);
              border-top: 1px solid var(--rule); gap: 16px; flex-wrap: wrap; text-transform: uppercase; }
footer.foot a { color: var(--muted); text-decoration: none; }

@media (max-width: 1000px) {
  .bar { padding: 16px 20px; } .nav { gap: 18px; font-size: 12px; }
  .head { padding: 36px 20px 24px; } .head h1 { font-size: 34px; }
  .architect { text-align: left; }
  .wrap, .cols { margin: 0 16px 24px; } .cols { flex-direction: column; } .cols > .card { width: 100%; }
  .card { padding: 26px 20px; }
  .phases { flex-direction: column; align-items: stretch; gap: 14px; }
  .phase { flex-direction: row; text-align: left; } .phase-line { display: none; }
  .savebar { padding: 12px 16px; }
  footer.foot { padding: 24px 16px; }
  .signin .photo { display: none; } .signin .panel { padding: 40px 24px; flex: 1; }
  .row { gap: 14px; }
  .step { flex-direction: column; gap: 12px; } .step-side { flex: none; } .step-num { font-size: 48px; }
  .more { grid-template-columns: 1fr; gap: 24px; } .prose .lede { font-size: 18px; }
}

/* admin */
.admin .bar { background: #1E1C1A; }
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
            border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; }
.admin td { border-bottom: 1px solid var(--rule-2); padding: 10px 10px 10px 0; vertical-align: top; }
.admin .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.admin .card { padding: 28px 32px; margin-bottom: 24px; }
.admin h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0 0 16px; }
.admin label.f { margin-bottom: 14px; }
.admin input, .admin select, .admin textarea { min-height: 42px; font-size: 16px; padding: 8px 12px; }
.admin textarea { min-height: 70px; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--bronze); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.copy { font-family: monospace; font-size: 13px; background: #fff; border: 1px dashed var(--bronze); padding: 10px; word-break: break-all; }
.mono { font-family: monospace; font-size: 12px; }

/* Native brief and client sharing: the same paper, type and quiet rules as the process. */
.brief-head .lede { margin-bottom: 0; }
.brief-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 64px; }
.brief-contents { align-self: start; position: sticky; top: 28px; border-top: 1px solid var(--bronze); padding-top: 22px; }
.brief-contents nav { display: grid; gap: 14px; margin: 22px 0 32px; }
.brief-contents nav a { font-size: 16px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.brief-contents nav a:hover { color: var(--bronze); }
.brief-prose { max-width: 840px; min-width: 0; }
.brief-section { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--rule); scroll-margin-top: 28px; }
.brief-section-heading { display: flex; gap: 22px; align-items: baseline; margin: 0 0 28px; }
.brief-section-heading h2 { margin: 0; font: 500 32px/1.15 var(--display); }
.brief-prose h3 { margin: 28px 0 10px; font-size: 14px; letter-spacing: .13em; line-height: 1.5; }
.brief-prose p { font-size: 20px; line-height: 1.65; overflow-wrap: anywhere; }
.brief-prose figure { margin: 28px 0; }
.brief-prose img { display: block; max-width: 100%; height: auto; }
.brief-note { padding: 0 0 24px; border-bottom: 1px solid var(--rule); }
.brief-closing { border-top: 1px solid var(--bronze); padding-top: 34px; display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.brief-closing h2, .share-intro h2, .received-files h2 { font: 500 38px/1.12 var(--display); margin: 14px 0 22px; }
.brief-closing p { margin: 0; }
.sharing-notices:empty { display: none; }
.sharing-notices { margin-bottom: 20px; }
.share-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; padding: 40px 0 64px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.share-intro { max-width: 430px; }
.share-intro h2 { font-size: 46px; }
.share-intro p { line-height: 1.65; font-size: 19px; color: var(--ink-2); }
.share-intro p.small { font-size: 15px; }
.share-panel { padding: 32px; background: var(--card); border: 1px solid var(--rule); min-width: 0; }
.share-panel input, .share-panel textarea, .share-panel select { background: var(--paper); max-width: 100%; }
.share-panel input[type="url"] { border: 1px solid var(--field); padding: 12px 16px; min-height: 48px; font: inherit; color: var(--ink); width: 100%; border-radius: 0; }
.share-panel small { color: var(--muted); font-size: inherit; text-transform: none; letter-spacing: 0; }
.file-picker input { border: 1px dashed var(--bronze); padding: 24px 14px; min-height: 90px; }
.file-picker input::file-selector-button { background: var(--card); border: 1px solid var(--field); padding: 10px; color: var(--ink); font: inherit; margin-right: 12px; }
.survey-types { margin: 28px 0; }
.survey-types dt { font-weight: 500; padding-top: 16px; border-top: 1px solid var(--rule); }
.survey-types dd { margin: 5px 0 16px; color: var(--muted); font-size: 16px; }
.shared-boards { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 16px; }
.shared-boards h3, .received-group h3 { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-weight: 400; color: var(--bronze); }
.shared-board { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.shared-board > a { font: 500 25px/1.3 var(--display); overflow-wrap: anywhere; }
.shared-board p, .file-note { margin: 8px 0; overflow-wrap: anywhere; }
.received-files { border-top: 1px solid var(--bronze); padding-top: 30px; }
.received-group { margin-bottom: 32px; }
.received-files .row-title { overflow-wrap: anywhere; }
.file-note { font-size: 16px; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
@media(max-width: 1000px) {
  .brief-layout { gap: 28px; grid-template-columns: minmax(150px,1fr) minmax(0,3fr); }
  .share-section { gap: 32px; }
  .share-panel { padding: 24px; }
}
@media(max-width: 700px) {
  .brief-layout, .share-section { display: block; }
  .brief-contents { position: static; margin-bottom: 36px; }
  .brief-contents nav { gap: 10px; margin: 14px 0 20px; }
  .brief-section-heading { gap: 14px; }
  .brief-section-heading h2 { font-size: 28px; }
  .brief-prose p { font-size: 19px; }
  .brief-closing { align-items: flex-start; flex-direction: column; }
  .share-intro { margin-bottom: 28px; max-width: none; }
  .share-intro h2 { font-size: 38px; }
  .share-section { padding: 28px 0 36px; }
  .share-panel { padding: 22px 18px; }
  .received-files .row { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .received-files .row-main { flex-basis: 75%; }
}

/* Native agreement, sharing the brief's typography and navigation. */
.proposal-table {overflow-x:auto;margin:24px 0;}
.proposal-table table {width:100%;border-collapse:collapse;font-size:17px;}
.proposal-table th,.proposal-table td {padding:14px 12px;text-align:left;border-bottom:1px solid var(--rule);}
.proposal-table th {color:var(--bronze);font-size:13px;font-weight:400;letter-spacing:.08em;}
.proposal-table td:not(:first-child) {white-space:nowrap;}
.proposal-layout {margin-top:40px;}

/* A quiet, prominent next step immediately below the project welcome. */
.proposal-prompt {display:flex;align-items:center;justify-content:space-between;gap:40px;border-top:2px solid var(--gold);}
.proposal-prompt-copy {max-width:670px;}
.proposal-prompt h2 {font-family:var(--display);font-size:34px;font-weight:500;line-height:1.15;margin:12px 0 16px;}
.proposal-prompt p {margin:0 0 12px;color:var(--ink-2);}
.proposal-prompt p:last-child {margin-bottom:0;}
.proposal-prompt-actions {display:flex;flex-direction:column;gap:14px;align-items:flex-start;flex-shrink:0;max-width:100%;}
.proposal-question {font-size:14px;}
@media(max-width:1000px) {
  .proposal-prompt {align-items:flex-start;flex-direction:column;gap:24px;}
}
@media(max-width:700px) {
  .proposal-prompt h2 {font-size:30px;}
  .proposal-prompt-actions .btn {white-space:normal;}
}
