/* Portable portfolio: native fonts, local images, native controls. */
:root {
  color-scheme: light;
  --ink: #172744;
  --muted: #566176;
  --paper: #fffefb;
  --wash: #f3f5fc;
  --mint: #d8f27c;
  --mint-dark: #284ab0;
  --line: #dde3ec;
  --focus: #195bd1;
  --radius: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; cursor: pointer; text-underline-offset: 5px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--mint); color: var(--ink); }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.section-space { padding-block: 96px; }
.skip-link { position: fixed; left: 18px; top: 10px; z-index: 100; padding: 12px 20px; color: white; background: var(--ink); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; text-decoration: none; font-weight: 680; font-size: 17px; letter-spacing: -.025em; white-space: nowrap; }
.monogram { width: 42px; height: 42px; display: grid; place-items: center; background: #3155d8; border-radius: 12px; color: white; font-size: 26px; font-weight: 750; letter-spacing: -.07em; padding-right: 3px; padding-bottom: 4px; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: 15px; font-weight: 600; }
.site-header nav a:hover { color: var(--mint-dark); text-decoration: underline; }
.site-header nav .nav-contact { border: 1px solid #f3cdb6; background: #fff0e4; border-radius: 99px; padding-inline: 20px; }
.mobile-nav-toggle, .site-header nav .mobile-only { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 70px; align-items: center; padding-block: 88px 100px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #31834d; box-shadow: 0 0 0 4px #e6f2d3; }
h1 { font-size: clamp(3.5rem, 6.3vw, 5.5rem); line-height: 1.055; font-weight: 650; letter-spacing: -.065em; max-width: 780px; }
h1 span { color: #3155d8; }
.hero-description { max-width: 580px; margin-top: 30px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 32px; }
.button { min-height: 54px; padding: 14px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; border-radius: 99px; font-size: 15px; font-weight: 650; line-height: 1.5; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button span { font-size: 20px; font-weight: 400; line-height: 1; }
.button-dark { background: #3155d8; color: white; }
.button-dark:hover { background: #2443b6; }
.button-outline { border-color: #cad3e4; background: white; color: var(--ink); }
.button-outline:hover { background: #edf1ff; border-color: #879ce0; }
.button-mint { background: var(--mint); color: var(--ink); }
.button-mint:hover { background: #c9e86a; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; }
.text-link:hover { color: var(--mint-dark); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 32px 0 0; list-style: none; font-size: 12px; font-weight: 500; color: var(--muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; height: 4px; width: 4px; background: var(--muted); border-radius: 50%; }
.profile-card { background: #edf1ff; box-shadow: 9px 9px 0 #fff0df; border: 1px solid #d7e0f4; border-radius: var(--radius); padding: 12px; margin-top: 30px; }
.portrait-frame { border-radius: 12px; overflow: hidden; background: #cae2e7; }
.portrait-frame picture, .project-visual picture { display: block; }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile-caption { padding: 26px 12px 18px; position: relative; }
.profile-caption p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.profile-caption strong { color: var(--ink); font-size: 19px; line-height: 1.7; font-weight: 650; letter-spacing: -.03em; }
.handwritten-line { position: absolute; right: 17px; top: 28px; width: 27px; height: 27px; border-top: 2px solid var(--mint-dark); border-right: 2px solid var(--mint-dark); border-radius: 0 15px 0 0; transform: rotate(-8deg); }
.profile-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); padding: 12px 12px 2px; font-size: 12px; font-weight: 650; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }
.work-section { padding-top: 60px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 19px; }
h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.section-heading > p { max-width: 385px; color: var(--muted); line-height: 1.75; padding-bottom: 5px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; align-items: start; }
.work-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: border-color 180ms ease; }
.work-card:hover { border-color: #a8b9df; }
.project-visual { display: block; background: #edf1ff; overflow: hidden; }
.project-visual:focus-visible { outline-offset: -7px; outline-color: var(--mint); }
.project-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.project-content { padding: 28px 30px 18px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 15px; font-size: 12px; color: var(--muted); }
.label { padding: 3px 10px; border-radius: 99px; background: var(--wash); color: var(--mint-dark); font-size: 11px; font-weight: 650; }
.project-content h3 { margin-bottom: 8px; font-size: 32px; line-height: 1.2; letter-spacing: -.05em; font-weight: 650; }
.project-content > p { color: var(--muted); font-size: 16px; max-width: 48ch; line-height: 1.6; min-height: 52px; }
.tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 8px; margin: 20px 0 14px; }
.tags li { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--muted); font-size: 11px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-block: 12px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 19px; line-height: 1; font-weight: 400; }
summary:hover { color: var(--mint-dark); }
details[open] > summary > span { transform: rotate(45deg); }
.case-details { border-top: 1px solid var(--line); }
.case-body { padding: 2px 0 14px; font-size: 14px; color: var(--muted); }
.case-body h4, .package-details h4 { color: var(--ink); font-size: 13px; margin: 14px 0 5px; font-weight: 700; }
.case-body p { margin-bottom: 12px; }
.case-body .case-deliverables { margin-top: 16px; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 22px; border-top: 1px solid var(--line); padding-top: 8px; }
.project-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.project-links a:hover { color: var(--mint-dark); text-decoration: underline; }
.work-caption { color: var(--muted); font-size: 12px; margin-top: 25px; }
/* Colorful illustrations above calm, readable service descriptions. */
.services-section { background: #f2f4fc; border-block: 1px solid #e2e7f5; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; align-items: stretch; }
.service-card { --service-accent: #9b4315; --service-wash: #fff0e2; background: white; border: 1px solid #dce3f0; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 4px 14px #20346105; }
.service-card:nth-child(2) { --service-accent: #2e4bb0; --service-wash: #edf1ff; }
.service-card:nth-child(3) { --service-accent: #6634aa; --service-wash: #f1eafb; }
.service-card:nth-child(4) { --service-accent: #185b96; --service-wash: #e8f5ff; }
.service-card:nth-child(5) { --service-accent: #773ba4; --service-wash: #f7edff; }
.service-card:nth-child(6) { --service-accent: #3d5c14; --service-wash: #eff8d5; }
.service-visual { width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: var(--service-wash); }
.service-visual picture { display: block; width: 100%; height: 100%; }
.service-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-content { padding: 25px 25px 24px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.service-number { color: var(--service-accent); background: var(--service-wash); border-radius: 99px; font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; margin-bottom: 20px; padding: 6px 10px; max-width: 100%; }
.service-content h3 { font-size: 25px; font-weight: 650; line-height: 1.22; letter-spacing: -.035em; min-height: 62px; }
.price { display: flex; align-items: center; gap: 15px; margin-block: 23px 18px; }
.price strong { font-size: 46px; font-weight: 620; letter-spacing: -.06em; line-height: 1; }
.price span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.service-content > p:not(.service-number) { font-size: 15px; color: var(--muted); line-height: 1.65; min-height: 74px; }
.service-list { padding: 0; margin: 19px 0 22px; list-style: none; font-size: 13px; line-height: 1.65; width: 100%; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; margin-block: 11px; }
.service-list li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; flex: 0 0 7px; border-left: 1.5px solid var(--service-accent); border-bottom: 1.5px solid var(--service-accent); transform: rotate(-45deg); }
.package-details { border-top: 1px solid var(--line); margin-top: auto; width: 100%; }
.package-details > div { font-size: 14px; line-height: 1.7; color: var(--muted); padding-bottom: 18px; }
.package-details h4:first-child { margin-top: 4px; }
.service-button { margin-top: 14px; width: 100%; padding-inline: 15px; gap: 12px; font-size: 13px; min-height: 50px; }
.package-note { font-size: 13px; color: var(--muted); margin-top: 28px; max-width: 93ch; }

.process-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 48px; }
.process-grid li { border-top: 1px solid var(--line); padding-top: 22px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; color: var(--mint-dark); font-size: 12px; margin-bottom: 24px; }
.process-grid h3 { font-size: 21px; letter-spacing: -.035em; line-height: 1.35; margin-bottom: 12px; font-weight: 650; }
.process-grid p { color: var(--muted); max-width: 33ch; font-size: 15px; }
.contact-section { background: #234ac4; color: white; padding-block: 90px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; }
.contact-section .eyebrow { color: #dbe5ff; margin-bottom: 24px; }
.contact-section h2 { font-size: clamp(3rem, 5vw, 4.5rem); }
.contact-section p:not(.eyebrow) { margin-top: 24px; color: #e2eaff; font-size: 16px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-actions .button { min-width: 280px; }
.email-link { color: white; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.contact-contra { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: #e2eaff; font-size: 13px; text-decoration: none; margin-top: 8px; }
.contact-contra:hover { text-decoration: underline; color: white; }
.contact-section a:focus-visible { outline-color: var(--mint); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-block: 34px; align-items: center; }
.site-footer p { display: flex; gap: 20px; align-items: center; font-size: 12px; color: var(--muted); }
.site-footer p strong { font-size: 14px; color: var(--ink); font-weight: 650; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 100%; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; text-decoration: none; }
.site-footer nav a:hover { color: var(--mint-dark); text-decoration: underline; }

@media (min-width: 1440px) { .hero { gap: 95px; } }
@media (max-width: 1050px) {
  .container { width: min(100% - 56px, 1180px); }
  .hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 42px; }
  h1 { font-size: clamp(3.4rem, 6vw, 4.5rem); }
  .hero-description { font-size: 17px; }
  .section-heading > p { max-width: 330px; }
  .project-content { padding: 25px 24px 15px; }
  .site-footer p { display: block; }
  .site-footer p span { display: block; margin-top: 4px; }
}
@media (max-width: 800px) {
  .section-space { padding-block: 76px; }
  .site-header { min-height: 94px; }
  .site-header nav { gap: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) 195px; gap: 30px; padding-block: 65px 76px; }
  h1 { font-size: 3.4rem; }
  .hero-description { margin-top: 24px; font-size: 16px; }
  .profile-card { padding: 8px; margin-top: 0; }
  .profile-caption { padding: 20px 7px 14px; }
  .profile-caption p { font-size: 11px; }
  .profile-caption strong { font-size: 16px; }
  .profile-link { padding-inline: 7px; font-size: 10px; }
  .handwritten-line { display: none; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .button { min-height: 50px; font-size: 14px; padding-inline: 21px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-notes { font-size: 11px; gap: 8px 14px; margin-top: 23px; }
  .section-heading { gap: 35px; margin-bottom: 35px; }
  .section-heading > p { max-width: 290px; font-size: 14px; }
  .work-grid { gap: 30px 20px; }
  .project-content { padding: 23px 20px 14px; }
  .project-content h3 { font-size: 29px; }
  .project-content > p { font-size: 14px; min-height: 70px; }
  .project-meta { font-size: 10px; gap: 7px 8px; }
  .label { font-size: 10px; }
  .project-links { gap: 10px 15px; }
  .project-links a { font-size: 11px; gap: 7px; }
  .process-grid { gap: 28px; }
  .process-grid h3 { font-size: 18px; }
  .process-grid p { font-size: 14px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 255px; gap: 35px; }
  .contact-actions .button { min-width: 0; width: 100%; gap: 18px; }
  .contact-contra { gap: 8px; font-size: 12px; }
  .site-footer nav { gap: 18px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .section-space { padding-block: 60px; }
  .site-header { min-height: 84px; gap: 14px; }
  .wordmark { gap: 8px; font-size: 13px; }
  .monogram { width: 32px; height: 34px; font-size: 23px; border-radius: 8px; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 12px; gap: 5px; }
  .site-header nav .nav-contact { border: 0; background: transparent; padding: 0; }
  .site-header nav .nav-contact span { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 38px; padding-block: 54px 58px; }
  .eyebrow { font-size: 10px; margin-bottom: 22px; }
  h1 { max-width: 470px; font-size: clamp(2.9rem, 10.5vw, 4.05rem); letter-spacing: -.065em; line-height: 1.08; }
  .hero-description { max-width: 44ch; font-size: 16px; line-height: 1.7; }
  .hero-actions { gap: 10px 20px; }
  .hero-actions .button { font-size: 14px; }
  .hero-notes { font-size: 10px; gap: 8px 13px; }
  .profile-card { padding: 10px; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 0 18px; border-radius: 16px; align-items: center; }
  .portrait-frame { grid-column: 1; grid-row: 1 / 3; border-radius: 10px; }
  .profile-caption { padding: 0; }
  .profile-caption p { font-size: 11px; }
  .profile-caption strong { font-size: 18px; }
  .profile-link { grid-column: 2; border: 0; font-size: 10px; padding: 0; min-height: 44px; gap: 8px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 17px; }
  h2 { font-size: 2.65rem; }
  .section-heading > p { margin-top: 22px; max-width: 42ch; font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-content { padding: 23px 23px 14px; }
  .project-content > p { min-height: auto; max-width: 40ch; font-size: 16px; }
  .project-meta { font-size: 11px; gap: 12px; }
  .label { font-size: 10px; }
  .project-content h3 { font-size: 31px; }
  .project-links a { font-size: 13px; gap: 12px; }
  .tags li { font-size: 11px; }
  summary { font-size: 13px; }
  .case-body { font-size: 15px; }
  .work-caption { font-size: 11px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid li { position: relative; padding: 24px 0 0 64px; }
  .step-number { position: absolute; top: 23px; left: 0; }
  .process-grid h3 { font-size: 21px; }
  .process-grid p { max-width: 36ch; font-size: 16px; }
  .contact-section { padding-block: 59px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-section h2 { font-size: 3rem; }
  .contact-section p:not(.eyebrow) { font-size: 16px; }
  .contact-actions { gap: 8px; }
  .contact-actions .button { width: auto; min-width: 235px; }
  .contact-contra { font-size: 13px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 28px; }
  .site-footer nav { flex-wrap: wrap; gap: 24px; }
  .site-footer nav a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .container { width: 100%; }
  .section-space, .hero, .contact-section { padding-block: 28px; }
  .site-header nav, .hero-actions, .service-button, .contact-actions, .site-footer nav, .skip-link { display: none; }
  .work-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card, .service-card { break-inside: avoid; }
  .contact-section { color: var(--ink); background: white; }
  .contact-section p, .contact-section .eyebrow { color: var(--muted); }
}
/* Service cards keep their illustration and copy together at every width. */
@media screen and (max-width: 1050px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .service-content > p:not(.service-number) { min-height: auto; }
}
@media screen and (max-width: 800px) {
  .services-grid { gap: 22px 18px; }
  .service-content { padding: 22px 22px 23px; }
  .service-content h3 { font-size: 24px; min-height: 60px; }
  .service-number { font-size: 9px; }
  .price { gap: 12px; }
  .price strong { font-size: 43px; }
  .price span { font-size: 10px; }
}
@media screen and (max-width: 640px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .service-content { padding: 25px 25px 24px; }
  .service-content h3 { font-size: 28px; min-height: auto; }
  .service-content > p:not(.service-number) { font-size: 16px; }
  .service-number { font-size: 10px; margin-bottom: 20px; }
  .service-list { font-size: 14px; margin-top: 20px; margin-bottom: 18px; }
  .price { margin-block: 24px 20px; gap: 17px; }
  .price strong { font-size: 51px; }
  .price span { font-size: 12px; }
  .package-details { margin-top: 0; }
  .service-button { margin-top: 15px; font-size: 14px; }
  .package-note { font-size: 12px; }
}
.work-card:nth-child(2) .label { background: #edf6d9; color: #385319; }
.work-card:nth-child(3) .label { background: #fff0e3; color: #884619; }
.work-card:nth-child(4) .label { background: #f2eafe; color: #613296; }
.process-grid li:nth-child(2) .step-number { background: #fff0e4; color: #8a471c; border-color: #f3d7c4; }
.process-grid li:nth-child(3) .step-number { background: #edf5d8; color: #425922; border-color: #d5e5b5; }

/* Additional own-project cover accents. */
.work-card:nth-child(5) .label { background: #edf3ff; color: #334f9c; }
.work-card:nth-child(6) .label { background: #fff3c9; color: #765018; }
.work-card:nth-child(7) .label { background: #e0f7ed; color: #216048; }
.work-card:nth-child(8) .label { background: #e2f8ff; color: #175c7e; }
.work-card:nth-child(9) .label { background: #fff0e2; color: #894118; }

/* Center the final unpaired project card. */
@media screen and (min-width: 601px) {
  .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 30px) / 2); }
}
@media screen and (min-width: 601px) and (max-width: 800px) {
  .work-card:last-child:nth-child(odd) { width: calc((100% - 20px) / 2); }
}

/* Case study interface screenshots. */
.case-interface { margin: 22px 0 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f7f8fb; }
.case-interface > a { display: block; }
.case-interface img { display: block; width: 100%; height: auto; }
.case-interface figcaption { padding: 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.case-interface figcaption a { display: inline-block; margin-left: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Expanded production case gallery. */
.case-gallery { margin-top: 24px; }
.case-gallery .case-interface { margin-top: 24px; }
.case-section { margin: 28px 0; }
.case-section h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.case-section > p { max-width: 76ch; }
@media screen and (min-width: 601px) {
  #project-playsport:has(#case-playsport[open]) { grid-column: 1 / -1; }
  #project-playsport:has(#case-playsport[open]) .project-visual { max-width: 640px; margin-inline: auto; }
  #project-playsport:has(#case-playsport[open]) .case-body > p { max-width: 76ch; }
}

/* Perevu expanded case */
@media (min-width: 681px) {
  #project-perevu:has(#case-perevu[open]) { grid-column: 1 / -1; }
  #project-perevu:has(#case-perevu[open]) .project-visual { max-width: 640px; margin-inline: auto; }
  #project-perevu:has(#case-perevu[open]) .case-body { max-width: 920px; margin-inline: auto; }
}

/* One compact header row on phones and tablets. Navigation stays in document
   flow when opened, so scrolling and keyboard focus need no modal handling. */
@media screen and (max-width: 900px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; gap: 0 12px; padding-block: 16px; }
  .wordmark { gap: 10px; font-size: 16px; }
  .monogram { width: 36px; height: 36px; border-radius: 10px; font-size: 23px; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; min-width: 88px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer; }
  .mobile-nav-toggle:hover, .mobile-nav-toggle[aria-expanded="true"] { background: #edf1ff; border-color: #b7c6e2; }
  .menu-cross { display: none; }
  [data-menu-open="true"] .menu-bars { display: none; }
  [data-menu-open="true"] .menu-cross { display: block; }
  .site-header nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; padding: 8px 16px 16px; max-height: calc(100svh - 108px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 18px; background: var(--wash); }
  .site-header[data-menu-open="true"] nav { display: flex; }
  .site-header nav a, .site-header nav .mobile-only { display: flex; justify-content: space-between; min-height: 50px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-header nav .nav-contact { min-height: 48px; margin-top: 12px; padding: 10px 18px; background: #3155d8; color: white; border: 1px solid #3155d8; font-size: 15px; }
  .site-header nav .nav-contact:hover { background: #2443b6; text-decoration: none; }
  .site-header nav .nav-contact span { display: inline; }
}
@media screen and (max-width: 600px) {
  .hero { padding-block: 32px 48px; gap: 28px; }
  .section-space { padding-block: 48px; }
  .case-body, .service-list { font-size: 16px; }
  .case-body h4, .package-details h4 { font-size: 16px; }
  .case-interface figcaption, .package-note { font-size: 13px; }
  .project-links { gap: 4px 20px; }
  .project-links a { font-size: 14px; }
  .site-footer nav { gap: 4px 24px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
}
@media screen and (max-width: 380px) { .wordmark { font-size: 15px; } }
