/* assets/css/pages.css : styles for /about/ and /contact/. Linked after site.css.
   Shared components (buttons, email line, copy chip, arrow link) belong to site.css. The fallbacks below only cover
   the gap while site.css is incomplete: every selector is written as element:where(.class), specificity (0,0,1), so it
   beats the base element rules (a, button) by source order but loses to any class rule in site.css, which keeps the
   last word. Hover states keep :hover outside the :where() to outrank the base a:hover. Everything after this block
   is specific to the two pages. */

a:where(.btn), button:where(.btn) { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--btn-h); min-width: var(--tap); padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); font: 500 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
a:where(.btn-primary), button:where(.btn-primary) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
a:where(.btn-primary):hover, button:where(.btn-primary):hover { background: color-mix(in srgb, var(--ink) 90%, var(--paper)); border-color: color-mix(in srgb, var(--ink) 90%, var(--paper)); color: var(--paper); }
a:where(.btn-outline), button:where(.btn-outline) { background: transparent; border-color: var(--ink); color: var(--ink); }
a:where(.btn-outline):hover, button:where(.btn-outline):hover { background: var(--stone); color: var(--ink); }
div:where(.cta-row) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: 0 0 var(--s-5); }
a:where(.link-arrow) { color: var(--accent); font-weight: 500; text-decoration: none; }
a:where(.link-arrow)::after { content: "\2192"; margin-left: 0.35em; }
a:where(.link-arrow):hover { color: var(--accent-hover); text-decoration: underline; }
p:where(.email-line) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: 0 0 var(--s-5); max-width: none; }
a:where(.email-text) { font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a:where(.email-text):hover { color: var(--accent); text-decoration: underline; }
button:where(.copy-email) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); font: 500 14px/1 var(--font-body); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
button:where(.copy-email):hover { background: var(--stone); }
@media (max-width: 719px) {
  div:where(.cta-row) { flex-direction: column; align-items: stretch; }
  div:where(.cta-row) :where(.btn) { width: 100%; }
}

/* ---------- shared by both pages ---------- */
.sticky-head h2 { margin-bottom: var(--s-5); }
.btn.is-done, .btn.is-done:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }

/* ---------- About ---------- */
.about-intro { padding-block: var(--s-8) var(--s-9); }
.about-intro h1 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.1; margin-bottom: var(--s-5); }
.about-intro .lead { font-size: 19px; line-height: 1.5; color: var(--graphite); max-width: 60ch; margin: 0; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-principles { border-top: var(--border); }
.principles { list-style: none; margin: 0; padding: 0; border-top: var(--border); }
.principles li { padding: var(--s-5) 0; border-bottom: var(--border); }
.principles h3 { font-size: 22px; line-height: 1.25; margin: 0 0 var(--s-2); }
.principles p { font-size: 16px; color: var(--graphite); max-width: 60ch; margin: 0; }

.scope-cols { display: grid; gap: var(--s-6) var(--gutter); }
.scope-col h3 { font-size: 22px; line-height: 1.25; margin: 0 0 var(--s-3); }
.scope-list { list-style: none; margin: 0; padding: 0; border-top: var(--border); }
.scope-list li { padding: var(--s-3) 0; border-bottom: var(--border); font-size: 16px; line-height: 1.5; }

.about-background .text p { color: var(--graphite); max-width: 60ch; }
.about-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: var(--s-5) 0 0; max-width: none; }
.about-links a { color: var(--accent); }
.about-thumb { margin: 0; }
.about-thumb a { display: block; }
.about-thumb img { width: 100%; }
.about-thumb figcaption { margin-top: var(--s-3); }
.about-thumb .thumb-title { font-size: var(--fs-small); color: var(--ink); margin: 0 0 var(--s-1); max-width: none; }
.about-thumb .disclosure { font-size: var(--fs-caption); color: var(--mist); line-height: 1.45; margin: 0; max-width: none; }

@media (min-width: 1024px) {
  .about-intro .intro-text { grid-column: 1 / span 7; }
  .col-head { grid-column: 1 / span 4; }
  .col-body { grid-column: 5 / span 8; }
  .sticky-head { position: sticky; top: calc(var(--nav-h) + var(--s-6)); align-self: start; }
  .scope-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .about-intro .intro-text { grid-column: 1 / span 5; }
  .col-head, .col-body { grid-column: 1 / -1; }
  .scope-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .about-intro { padding-block: var(--s-7) var(--s-8); }
  .about-intro .lead { font-size: 17px; }
  .principles li { padding: var(--s-4) 0; }
  .principles h3, .scope-col h3 { font-size: 20px; }
}

/* ---------- Contact (21.10.2026): the page is the letter ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--graphite); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { border-color: var(--graphite); color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn .ico-done, .btn .ico-done { display: none; }
.icon-btn.is-copied, .btn.is-done { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.icon-btn.is-copied .ico:not(.ico-done), .btn.is-done .ico:not(.ico-done) { display: none; }
.icon-btn.is-copied .ico-done, .btn.is-done .ico-done { display: block; }
.contact-hero { padding-block: var(--s-8) var(--s-8); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7) var(--s-8); align-items: start; }
.contact-lead h1 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; margin-bottom: var(--s-5); }
.contact-why { font-size: var(--fs-small); color: var(--mist); margin: 0 0 var(--s-6); max-width: 44ch; }
.facts-icons { list-style: none; margin: 0; padding: 0; border-top: var(--border); }
.facts-icons li { display: flex; align-items: flex-start; gap: var(--s-4); padding: 14px 0; border-bottom: var(--border); }
.facts-icons .ico { margin-top: 3px; color: var(--graphite); }
.fi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 16px; line-height: 1.45; }
.fi-label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--mist); }
.fi-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.fi-text a { color: var(--ink); text-decoration-color: var(--line); overflow-wrap: anywhere; }
.fi-text a:hover { color: var(--accent); text-decoration-color: currentColor; }
.fi-row .email-text { font-size: 18px; font-weight: 500; text-decoration: none; }
/* the sheet */
.letter, .sheet { position: relative; padding: var(--s-6) var(--s-6) var(--s-5); background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 48px -32px rgba(0, 0, 0, .25); }
.letter::before, .sheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: var(--radius) var(--radius) 0 0; }
.letter-eyebrow { margin: 0 0 var(--s-4); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--mist); }
.letter-head { display: grid; gap: 6px; margin: 0 0 var(--s-5); padding-bottom: var(--s-4); border-bottom: var(--border); }
.letter-head div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); font-size: 14px; }
.letter-head dt { color: var(--mist); }
.letter-head dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.letter-greeting { margin: 0 0 var(--s-4); font: 500 22px/1.3 var(--font-head); }
.letter-fields { margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.letter-fields li { display: grid; grid-template-columns: auto minmax(40px, 1fr); gap: 2px var(--s-3); align-items: end; padding: 10px 0; }
.lf-label { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.lf-line { display: block; height: 1px; margin-bottom: 5px; background: var(--line); }
.lf-hint { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--mist); }
.letter-signoff { margin: 0 0 var(--s-5); font-size: 15px; line-height: 1.5; color: var(--graphite); }
.letter-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.letter-actions .btn { gap: 10px; }
.letter-actions .ico { width: 18px; height: 18px; }
.brief-status { font-size: var(--fs-small); color: var(--accent); margin: var(--s-2) 0 0; min-height: 1.55em; max-width: none; }
.letter-note { margin: var(--s-2) 0 0; font-size: var(--fs-caption); color: var(--mist); }
.brief-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.55 var(--font-body); color: var(--ink); background: var(--stone); border: var(--border); border-radius: var(--radius); padding: var(--s-4); margin: var(--s-4) 0 0; max-width: 100%; }
.contact-block { padding-block: 0 var(--s-8); }
.contact-block h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 0; text-wrap: nowrap; white-space: nowrap; }  /* 22.10: one line, not three orphan words */
@media (max-width: 719px) { .contact-block h2 { text-wrap: balance; white-space: normal; } }
.steps-next .step p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 52ch; }
.card-stone { background: var(--stone); border-radius: var(--radius); padding: var(--s-5) var(--s-6); }
.card-stone h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--s-2); }
.card-stone p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--graphite); }
@media (max-width: 1023px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .contact-agencies .contact-lead:empty { display: none; }
}
@media (max-width: 719px) {
  .contact-hero { padding-block: var(--s-7) var(--s-7); }
  .letter { padding: var(--s-5) var(--s-4) var(--s-4); }
  .letter-fields li { grid-template-columns: minmax(0, 1fr); }
  .lf-line { display: none; }
  .lf-label { white-space: normal; }
  .letter-actions .btn { width: 100%; }
  .contact-block { padding-bottom: var(--s-7); }
  .card-stone { padding: var(--s-4); }
}

/* the request form on the sheet (21.10.2026) */
.sheet-title { margin: 0 0 var(--s-2); font-size: clamp(24px, 2.2vw, 30px); }
.sheet-intro { margin: 0 0 var(--s-5); font-size: var(--fs-small); color: var(--graphite); }
.lead { display: flex; flex-direction: column; gap: var(--s-4); }
.f-row { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.f-opt { font-weight: 400; color: var(--mist); }
.f-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea.f-input { resize: vertical; min-height: 96px; }
.f-input::placeholder { color: var(--mist); }
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.f-input[aria-invalid="true"] { border-color: #B42318; }
.f-error { margin: 0; min-height: 0; font-size: 13px; color: #B42318; max-width: none; }
.f-error:empty { display: none; }
.f-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-2); }
.f-fallback { font-size: var(--fs-small); font-weight: 500; color: var(--accent); }
.lead-status { margin: 0; min-height: 0; font-size: var(--fs-small); max-width: none; }
.lead-status:empty { display: none; }
.lead-status.is-error { color: #B42318; }
.lead-status.is-busy, .lead-status.is-ok { color: var(--graphite); }
.f-notice { margin: 0; font-size: var(--fs-caption); line-height: 1.45; color: var(--mist); }
.lead-done { padding: var(--s-5) 0 var(--s-3); }
.lead-done:focus { outline: none; }
.lead-done-title { margin: 0 0 var(--s-2); font: 500 28px/1.2 var(--font-head); }
.lead-done-text { margin: 0; font-size: 16px; color: var(--graphite); max-width: none; }
@media (max-width: 719px) { .f-actions .btn { width: 100%; } }

/* about (22.10.2026): the portrait sits under the sticky «How I work» heading; «Work so far» lists every work */
.about-photo-sticky { max-width: 300px; margin-top: var(--s-5); }
.about-intro { padding-block: var(--s-8) var(--s-8); }
.about-background-head { max-width: 60ch; margin-bottom: var(--s-6); }
.about-background-head p { color: var(--graphite); }
.about-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); margin: 0; padding: 0; list-style: none; }
.about-works li { min-width: 0; }
.about-works a { display: block; color: inherit; text-decoration: none; }
.about-works img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: var(--border); background: var(--surface); transition: transform var(--t-fast); }
.about-works a:hover img { transform: translateY(-2px); }
.about-work-name { display: block; margin-top: var(--s-3); font-family: var(--font-head); font-size: 17px; line-height: 1.3; }
.about-work-cat { display: block; margin-top: 2px; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 1023px) { .about-photo-sticky { max-width: 360px; margin-top: var(--s-4); margin-bottom: var(--s-5); } }
@media (max-width: 719px) { .about-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } .about-work-name { font-size: 15px; } }
