/* Responsive tiers: mobile <=700px; tablet 701–1200px; desktop >=1201px.
   Aspect ratio, orientation, motion and hover queries handle device capabilities. */
/* Portfolio pages extend the existing home page's type, colour and theme. */
.portfolio-page { user-select: text; -webkit-user-select: text; }
.portfolio-page main { max-width: 1600px; margin: auto; padding: 130px var(--pad) 90px; }
.portfolio-page .intro { padding: 28px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow { font: 12px/1.6 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.portfolio-page h1 { font-size: clamp(64px, 10vw, 150px); line-height: 1; letter-spacing: -.065em; font-weight: 400; margin: 18px 0 24px; }
.portfolio-page h1 em { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
body.portfolio-page[data-theme="dark"] h1 em { color: #d0f4ff; }
.portfolio-page .lede { max-width: 650px; font-size: clamp(18px, 2vw, 25px); color: var(--muted); }
.portfolio-page section { padding: 36px 0; }
.portfolio-page h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.15; letter-spacing: -.035em; font-weight: 400; margin-bottom: 18px; }
.portfolio-page h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.portfolio-page p + p { margin-top: 16px; }
.portfolio-page button, .portfolio-page input, .portfolio-page select, .portfolio-page textarea { font: inherit; }
.portfolio-page button, .pill, .text-link { cursor: pointer; }
.portfolio-page button:focus-visible, .portfolio-page a:focus-visible, .portfolio-page input:focus-visible, .portfolio-page textarea:focus-visible, .portfolio-page select:focus-visible { outline: 3px solid #7488ff; outline-offset: 5px; }
.toolbar { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 30px 0; }
.filters, .mode-tabs, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 21px; background: transparent; color: var(--fg); text-decoration: none; }
.pill[aria-pressed="true"], .pill[aria-selected="true"], .pill.primary { background: var(--accent); color: white; border-color: var(--accent); }
.pill:hover { border-color: var(--accent); }
.text-link { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 5px; padding: 8px 0; }
.local-note, .muted { color: var(--muted); font-size: 14px; }
.upload-panel { border: 1px solid var(--line); padding: 24px; margin-bottom: 32px; }
.drop-zone { display: grid; justify-items: center; gap: 12px; border: 1px dashed var(--muted); padding: 40px 20px; text-align: center; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.drop-zone.is-dragging { outline: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop-symbol { color: var(--accent); font-size: 46px; line-height: 1; }
.upload-panel .local-note { margin-top: 18px; max-width: 720px; }
.status { min-height: 24px; margin: 16px 0; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.art-card { min-width: 0; }
.art-open { width: 100%; background: transparent; border: 0; text-align: left; color: inherit; cursor: zoom-in; }
.art-open img { width: 100%; height: 350px; object-fit: contain; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.art-card .art-meta { display: flex; gap: 10px; justify-content: space-between; margin: 15px 0 8px; }
.art-card h3 { font-size: 20px; font-weight: 400; }
.art-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.art-card .actions { margin-top: 14px; gap: 20px; }
.empty-state { padding: 55px 0; border-top: 1px solid var(--line); grid-column: 1/-1; }
.empty-state p { color: var(--muted); max-width: 530px; }
.feature-art { margin-top: 44px; }
.feature-art img { width: 100%; max-height: 500px; object-fit: contain; background: #eeeefa; }
.feature-art figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
dialog { margin: auto; padding: 28px; width: min(720px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); color: var(--fg); background: var(--bg); }
dialog::backdrop { background: #101020b8; }
dialog .dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
dialog h2 { font-size: 28px; }
dialog img { max-height: 60dvh; margin: auto; object-fit: contain; }
dialog .viewer-caption { margin-top: 18px; white-space: pre-wrap; }
.portfolio-page label { display: grid; gap: 8px; margin: 18px 0; }
.portfolio-page input, .portfolio-page select, .portfolio-page textarea { width: 100%; min-width: 0; border: 1px solid var(--line); padding: 12px; border-radius: 0; color: var(--fg); background: var(--bg); user-select: text; }
.portfolio-page textarea { resize: vertical; }
.portfolio-page input[type="checkbox"] { width: auto; }
.portfolio-page [hidden] { display: none !important; }
.mode-tabs { margin: 32px 0; }
.mode-tabs .pill { min-width: 130px; font-size: 20px; }
.commission-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 100px); }
.service-list { list-style: none; margin-top: 24px; }
.service-list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 19px; }
.process-list { padding-left: 24px; }
.process-list li { padding: 10px 0 10px 10px; }
.terms-next { margin-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.brief-form { max-width: 720px; }
.brief-output { white-space: pre-wrap; padding: 24px; margin: 24px 0; border: 1px solid var(--line); font: inherit; overflow-wrap: anywhere; }
.terms-list { max-width: 900px; }
.terms-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.terms-list summary { font-size: 23px; cursor: pointer; }
.terms-list details p { color: var(--muted); margin: 18px 0 8px; max-width: 70ch; }
.draft-note { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 30px 0; max-width: 800px; }
.portfolio-page .site-header { background: var(--bg); }
.menu a[aria-current="page"] { color: var(--fg); }
.home-explore { display: flex; flex-wrap: wrap; align-content: center; gap: 20px; }
.home-explore h2 { flex-basis: 100%; font-size: clamp(36px, 6vw, 80px); font-weight: 400; letter-spacing: -.045em; }
.home-explore a { font-size: 22px; border-bottom: 1px solid currentColor; padding: 12px 0; margin-right: 28px; }
.about-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 112px); align-items: start; }
.about-portrait { margin: 0; }
.about-portrait img { max-height: min(68vh, 760px); border: 1px solid var(--accent); object-fit: cover; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.about-copy { padding-top: 42px; max-width: 62ch; }
.about-copy h2 em, .service-note h2 em, .contact-details h2 em { color: var(--accent); font-family: var(--font-display); }
body.portfolio-page[data-theme="dark"] .about-copy h2 em, body.portfolio-page[data-theme="dark"] .service-note h2 em, body.portfolio-page[data-theme="dark"] .contact-details h2 em { color: #d0f4ff; }
.about-copy .pill { margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { display: flex; min-height: 310px; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 42px); border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 2.5%, var(--bg)); }
.service-card h2 { margin-top: 42px; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; padding-top: 28px; }
.service-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: clamp(22px, 4vw, 52px) 0 !important; border-top: 1px solid var(--line); }
.service-note h2 { margin: 8px 0 0; }
.contact-layout { padding-top: 40px !important; }
.contact-details { max-width: 54ch; }
.contact-email { display: inline-block; margin: 26px 0 12px; font-size: clamp(21px, 2.3vw, 30px); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-form { max-width: 680px; }
.contact-form label { color: var(--muted); font-size: 14px; }
.contact-form .pill { margin: 8px 0 18px; }
.contact-form .muted { max-width: 52ch; }
body.portfolio-page .site-header { color: var(--fg); }
body.portfolio-page .site-header .theme-btn, body.portfolio-page .site-header .menu-btn { color: var(--accent); }
body.portfolio-page[data-theme="dark"] .site-header .theme-btn, body.portfolio-page[data-theme="dark"] .site-header .menu-btn { color: #d0f4ff; }
@media (max-width: 1200px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .commission-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } .service-card { min-height: 240px; } .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 18px; } .about-copy { padding-top: 20px; } }
@media (max-width: 700px) { .portfolio-page main { padding-top: 100px; } .art-grid { grid-template-columns: 1fr; } .art-open img { height: 320px; } .terms-next { align-items: flex-start; flex-direction: column; } .upload-panel { padding: 14px; } .filters { gap: 6px; } .filters .pill { padding: 9px 13px; } .service-note { align-items: flex-start; flex-direction: column; } }

/* Three container levels: wide composition, content layout, readable copy. */
:root {
  --container-wide: 120rem;
  --container-content: 80rem;
  --container-copy: 52rem;
}
.hero__composition { max-width: var(--container-wide); margin-inline: auto; }
.hello-page__layout { max-width: var(--container-content); margin-inline: auto; }
.hello-page__body { padding-left: 0; }
.hello-page__copy-box { max-width: var(--container-copy); }
.hello-page__copy {
  font-size: clamp(1.125rem, 1rem + 1.6vw, 2.75rem);
  line-height: 1.45;
  text-align: justify;
  text-align-last: start;
  text-wrap: wrap;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hello-page__copy span { display: inline; }
@media (max-width: 700px) {
  .hello-page__layout { gap: 24px; }
  .hero-meta { flex-wrap: wrap; }
}
