/* The approved desktop composition, reframed for phones and small tablets.
   Loaded only at widths of 900px or less; desktop styles and assets stay fixed. */
:root {
  --mobile-gutter: clamp(18px, 5vw, 32px);
  --mobile-wall: #eee2d2;
  --mobile-brand-size: clamp(96px, 27vw, 132px);
}

html { scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
main, section, .wrap { min-width: 0; }
.opening-copy, .offering-card, .meet-copy, .location-copy, .contact-aside-inner, .inquiry-form, .compact-footer { overflow-wrap: break-word; }
.desktop-break { display: none; }
.wrap { width: calc(100% - var(--mobile-gutter) * 2); }

/* Keep the desktop's three real navigation links visible on phones too.
   The original logo now has explicit alpha; no backdrop blending is needed. */
.masthead { position: relative; background: var(--mobile-wall); mix-blend-mode: normal; isolation: isolate; }
.masthead-inner { justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 10px var(--mobile-gutter); }
.masthead .brand-link { --brand-size: var(--mobile-brand-size); }
.brand-link { mix-blend-mode: normal; }
.brand-link .brand-mark { display: none; }
.brand-mark-mobile {
  display: block !important;
  position: absolute;
  width: calc(var(--brand-size) * 1.64);
  max-width: none;
  height: auto;
  left: calc(var(--brand-size) * -.28);
  top: calc(var(--brand-size) * -.21);
  pointer-events: none;
}
.js .masthead .menu-toggle { display: none; }
.masthead #main-navigation {
  display: flex;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  font-size: clamp(1rem, 4.3vw, 1.125rem);
}
.masthead #main-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 5px; }

/* One full-bleed opening: useful copy first, then the same original portrait,
   sunset artwork, marble desk, cup, engraved pen and laptop as on desktop. */
.opening { display: flex; flex-direction: column; aspect-ratio: auto; min-height: 0; background: var(--mobile-wall); }
.opening-copy {
  order: 1;
  width: 100%;
  padding: 20px var(--mobile-gutter) 14px;
  text-align: left;
  background: linear-gradient(90deg, rgba(238,226,210,.78), rgba(238,226,210,.93)), url('portrait-office.png') left top / 260% auto no-repeat;
}
.opening h1 { max-width: 32rem; margin: 0; font-size: clamp(2.2rem, 10.7vw, 3.4rem); line-height: 1.03; letter-spacing: -.04em; }
.opening h1 > span { white-space: normal; }
.opening h1 .script { font-size: 1.17em; }
.opening-description { max-width: 27rem; margin-top: 13px; font-size: 1.25rem; line-height: 1.3; }
.opening-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 30rem; margin: 18px 0 0; }
.opening-actions .button { width: 100%; min-width: 0; min-height: 48px; padding: 11px 8px; font-size: 1.125rem; line-height: 1.25; }
.opening-location { justify-content: flex-start; gap: 7px; margin-top: 13px; font-size: 1rem; line-height: 1.4; }
.opening .opening-image.portrait-scene,
.meet-scene.portrait-scene { position: relative; inset: auto; order: 2; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; }
.portrait-scene .portrait-stage { inset: auto 0 0 auto; width: 150%; height: auto; aspect-ratio: 2 / 1; }
/* iOS fallback: convert the existing silhouette to true alpha inside SVG.
   White RGB + the same alpha is safe under either mask interpretation.
   Only the matte is filtered, never the original photograph. */
.portrait-scene .portrait-person { display: none; }
.portrait-scene .portrait-person-mobile {
  display: block !important;
  position: absolute;
  left: 40%;
  top: -5.2%;
  width: 53%;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.opening .portrait-person-mobile { left: 41.5%; }
/* Fade only the empty room edge; the original face, hair and blazer are untouched. */
.portrait-scene .portrait-room { mask-image: linear-gradient(to bottom, transparent, #000 12%); }
.opening .opening-image.portrait-scene { background: var(--mobile-wall); }
.language-bar { flex-direction: column; gap: 5px; padding: 18px var(--mobile-gutter); background: #e8dcca; border-bottom: 0; }
.language-bar > p:not(.languages) { font-size: .75rem; line-height: 1.4; letter-spacing: .6px; color: #685037; text-align: center; }
.language-bar .languages { font-size: 1.375rem; line-height: 1.4; white-space: normal; text-align: center; }
.language-bar .languages span { padding-inline: 4px; }
.language-bar .appointment-note { display: none; }

/* The desktop's fine gold divider, with a shorter transition on phones. */
.section-divider { position: relative; display: block; height: 24px; background: #f5eadc; pointer-events: none; }
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--mobile-gutter);
  right: var(--mobile-gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b59a72 12%, #b59a72 88%, transparent);
}

/* Preserve the translucent ivory service cards and the original desk setting. */
.offerings { background: #f0e5d6; border-top: 0; border-bottom: 0; }
.offerings-backdrop { inset: auto 0 0; height: auto; object-fit: contain; object-position: center bottom; opacity: 1; }
.offerings-inner { width: calc(100% - var(--mobile-gutter) * 2); padding: 36px 0 26px; }
.ornament-label { gap: 16px; font-size: .75rem; line-height: 1.5; letter-spacing: 2.8px; color: #765a3e; }
.ornament-label::before, .ornament-label::after { width: var(--section-rule-length); flex: 0 0 var(--section-rule-length); }
.offerings-heading { margin-bottom: 24px; }
.offerings-heading h2 { margin-top: 11px; font-size: clamp(2.5rem, 10.5vw, 3.1rem); line-height: 1.06; }
.offerings-subtitle { max-width: 30ch; margin: 11px auto 0; font-size: .75rem; line-height: 1.55; letter-spacing: 1.3px; }
.offering-cards { grid-template-columns: 1fr; gap: 16px; }
.offering-card { min-width: 0; padding: 25px 24px; border-radius: 3px; background: rgba(252,247,238,.94); box-shadow: 0 4px 15px rgba(101,73,41,.045); }
.offering-icon { width: 40px; height: 40px; margin-bottom: 11px; }
.offering-card h3 { max-width: 100%; font-size: 2.125rem; line-height: 1.12; white-space: normal; }
.offering-card > p, .offering-list { font-size: 1.1875rem; line-height: 1.4; }
.offering-list { gap: 6px; margin: 17px 0 23px; }
.offering-card p.offering-area { font-size: 1.125rem; line-height: 1.45; }
.offering-card p.offering-appointment { font-size: 1.125rem; line-height: 1.4; margin-bottom: 22px; }
.offering-card .button { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; font-size: 1.25rem; line-height: 1.3; }
/* Keep the required notice visible with its service, without a separate
   rectangular panel over the photograph. The desktop notice is unchanged. */
.offering-disclaimer { display: none; }
.offering-card .notary-notice-mobile {
  display: block !important;
  width: 100%;
  margin: 0 0 19px;
  padding-top: 15px;
  border-top: 1px solid #d7c5aa;
  background: none;
  color: #514131;
  font-family: var(--serif);
  font-size: .9375rem;
  line-height: 1.45;
  text-align: left;
}

/* Mobile About: the original portrait on a clean background, fading softly below. */
.meet-masha { display: flex; flex-direction: column; align-items: stretch; aspect-ratio: auto; background: #efe2d1; }
.meet-copy { order: 1; width: 100%; max-width: 37rem; margin-inline: auto; padding: 36px var(--mobile-gutter) 20px; background: none; }
.meet-copy h2 { margin-top: 15px; font-size: clamp(2.5rem, 10.8vw, 3.25rem); line-height: 1.15; white-space: normal; }
.meet-copy h2 .script { font-size: 1.3em; }
.meet-founder { font-size: .75rem; letter-spacing: 1.6px; margin-top: 11px; }
.meet-intro { font-size: 1.25rem; line-height: 1.4; margin-top: 21px; }
.meet-personal { font-size: 1.1875rem; line-height: 1.45; margin-top: 15px; }
.meet-languages { font-size: 1.1875rem; line-height: 1.45; margin-top: 18px; }
.meet-copy .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; padding: 8px 2px; font-size: 1.125rem; }
.meet-scene.portrait-scene { aspect-ratio: auto; background: none; }
.meet-scene.portrait-scene::after { display: none; }
.meet-scene.portrait-scene .portrait-room,
.meet-scene.portrait-scene .portrait-foreground { display: none; }
.meet-scene.portrait-scene .portrait-stage {
  position: relative;
  inset: auto;
  width: min(100%, 32rem);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  /* This alpha fade affects the lower portrait only, keeping the face fully opaque. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.8) 78%, rgba(0,0,0,.3) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.8) 78%, rgba(0,0,0,.3) 90%, transparent 100%);
}
.meet-scene.portrait-scene .portrait-person-mobile {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
}

.location { display: flex; flex-direction: column; background: #efe3d0; }
.location-layout { min-height: 0; order: 1; }
.location-copy { width: 100%; max-width: 35rem; margin-inline: auto; padding: 36px 0 4px; font-family: var(--serif); text-align: center; }
.location-copy .eyebrow { justify-content: center; gap: 16px; font-size: .75rem; line-height: 1.5; letter-spacing: 2.8px; color: #765a3e; margin-bottom: 21px; }
.location-copy h2 { font-size: clamp(2.5rem, 10.5vw, 3.1rem); line-height: 1.06; }
.location-copy h2 .script { font-size: 1.3em; margin-top: 7px; }
.location-copy > p:not(.eyebrow) { font-size: 1.25rem; line-height: 1.45; margin-top: 21px; }
.location-copy p.location-detail { font-size: 1.125rem; line-height: 1.5; margin-top: 12px; }
.location-copy .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding-block: 9px; font-size: 1.125rem; }
.location-image { position: relative; inset: auto; order: 2; height: auto; aspect-ratio: 4 / 3; margin-top: 12px; z-index: 0; }
.location-image img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.location-image::after { background: linear-gradient(to bottom, #efe3d0, transparent 18%); }

/* Centered brown contact panel, spacious inputs and the complete laptop photo. */
.contact-banner { display: grid; grid-template-columns: 1fr; border-top: 0; background: #f3e8d9; }
.contact-aside { display: flex; align-items: center; justify-content: center; padding: 34px var(--mobile-gutter); }
.contact-aside-inner { width: 100%; max-width: 18rem; margin-inline: auto; align-items: center; text-align: center; }
.contact-aside-inner .contact-label { gap: 16px; font-size: .75rem; letter-spacing: 2.8px; }
.contact-aside-inner h2 { font-size: 2.25rem; line-height: 1.15; margin-top: 14px; white-space: normal; }
.contact-aside-inner .contact-methods { width: 100%; margin: 17px auto 0; gap: 3px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.4; text-align: center; }
.contact-aside-inner .contact-methods li { justify-content: center; min-width: 0; min-height: 40px; gap: 8px; }
.contact-methods a { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
.contact-aside-inner .contact-methods .contact-phone { font-family: inherit; font-size: 1em; font-variant-numeric: lining-nums tabular-nums; white-space: normal; }
.contact-aside-inner .contact-closing { font-size: 2.25rem; line-height: 1.05; margin-top: 20px; padding-top: 20px; }
.contact-scene-panel { display: grid; grid-template-columns: 1fr; min-height: 0; overflow: visible; }
.inquiry-form { width: 100%; max-width: 36rem; margin: 0 auto; padding: 35px var(--mobile-gutter) 26px; scroll-margin-top: 20px; }
.inquiry-form h3 { max-width: 22ch; font-size: 2.25rem; line-height: 1.12; margin-bottom: 24px; }
.inquiry-row { grid-template-columns: 1fr; gap: 0; }
.inquiry-field { margin-bottom: 15px; }
.inquiry-form .inquiry-field > .sr-only {
  position: static !important; width: auto !important; height: auto !important;
  margin: 0 0 6px !important; padding: 0 !important; overflow: visible !important;
  clip-path: none !important; white-space: normal !important;
}
.inquiry-field label { font-family: var(--serif); font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.inquiry-field input, .inquiry-field select, .inquiry-field textarea { min-height: 50px; padding: 12px; font-size: 1.125rem; line-height: 1.35; border-radius: 3px; background: #fdf9f2; box-shadow: none; }
.inquiry-field textarea { min-height: 112px; }
.inquiry-extra { font-size: .875rem; line-height: 1.5; margin: 0 0 17px; }
.inquiry-extra summary { min-height: 44px; padding-block: 10px; }
.inquiry-form .submit-button { min-height: 50px; padding: 12px; font-size: 1.25rem; line-height: 1.3; }
.inquiry-note, .appointment-confirmation { font-size: .8125rem; line-height: 1.5; }
.email-request { display: flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 8px 3px; font-size: 1rem; }
.form-status { font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.booking-photo { --booking-fade-bottom: #f8efe3; position: relative; width: 100%; max-width: none; margin: 0; border-radius: 0; overflow: hidden; }
.booking-photo img { width: 100%; height: auto; }
/* Blend the sky into the form and the desk edge into the footer. */
.booking-photo::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(to bottom, #f3e8d9, rgba(243, 232, 217, 0) 19%),
    linear-gradient(to top, var(--booking-fade-bottom), rgba(248, 239, 227, 0) 14%);
  pointer-events: none;
}

/* Two compact rows keep the brand clear and leave comfortable touch targets. */
.compact-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "brand description" "copyright socials";
  align-items: center;
  gap: 2px 16px;
  min-height: 0;
  padding: 12px var(--mobile-gutter) max(12px, env(safe-area-inset-bottom));
  text-align: left;
  isolation: isolate;
}
.compact-footer > * { min-width: 0; }
.compact-footer .brand-link { --brand-size: clamp(100px, 26vw, 118px); grid-area: brand; justify-self: start; }
.thank-you .brand-link { --brand-size: var(--mobile-brand-size); }
.footer-description { grid-area: description; justify-self: end; max-width: 18ch; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.35; text-align: right; }
.footer-socials { grid-area: socials; justify-self: end; width: fit-content; justify-content: flex-end; gap: 6px; margin: 0; }
/* A smaller visible ring retains the full 44px touch target. */
.footer-socials .social-icon { position: relative; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; }
.footer-socials .social-icon::before { content: ''; position: absolute; inset: 4px; border: 1px solid #bfa680; border-radius: 50%; pointer-events: none; }
.footer-socials .social-icon svg { width: 20px; height: 20px; flex: none; }
.footer-copyright { grid-area: copyright; margin: 0; font-family: var(--serif); font-size: .875rem; line-height: 1.4; letter-spacing: 0; font-variant-numeric: lining-nums; white-space: normal; text-align: left; }
.thank-you { margin: 20px var(--mobile-gutter); padding: 30px 20px; isolation: isolate; }
.thank-you h1 { font-size: 2.5rem; line-height: 1.15; }
.thank-you p { font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.thank-you .button { min-height: 48px; }

@media (max-width: 699px) {
  .compact-footer { border-top: 0; }
}

@media (min-width: 600px) {
  .offering-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offering-card { padding-inline: 18px; }
  .offering-card h3 { font-size: 1.875rem; }
  .offering-card .button { font-size: 1.125rem; }
  .inquiry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .language-bar { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
  .compact-footer { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand description socials copyright"; gap: 18px; }
  .footer-description { justify-self: start; max-width: none; text-align: left; }
  .footer-copyright { text-align: right; }
}

/* Tablets retain the approved left-copy / right-portrait composition. */
@media (min-width: 700px) {
  .masthead-inner { padding-block: 12px; }
  .masthead #main-navigation { gap: 22px; font-size: 1.25rem; }
  .opening { display: block; min-height: 420px; aspect-ratio: 1.8 / 1; }
  .opening-copy { width: 54%; padding: 28px 16px 70px var(--mobile-gutter); background: none; }
  .opening h1 { font-size: clamp(2.1rem, 4.85vw, 2.75rem); }
  .opening-description { font-size: 1.25rem; margin-top: 13px; }
  .opening-actions { margin-top: 18px; }
  .opening-actions .button { padding-inline: 6px; font-size: 1.125rem; }
  .opening .opening-image.portrait-scene, .meet-scene.portrait-scene { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .portrait-scene .portrait-stage { width: 100%; }
  .meet-masha { display: block; min-height: 440px; }
  .meet-scene.portrait-scene { inset: auto 0 0 auto; width: 51%; height: auto; aspect-ratio: auto; }
  .meet-copy { width: 49%; max-width: none; margin: 0; padding: 32px 16px 38px var(--mobile-gutter); }
  .meet-copy h2 { font-size: clamp(2.25rem, 4.8vw, 2.75rem); }
  .meet-intro { font-size: 1.1875rem; line-height: 1.35; }
  .meet-personal { font-size: 1.125rem; line-height: 1.4; }
  .meet-languages { font-size: 1.125rem; }
  .location-image { aspect-ratio: 16 / 9; }
  .contact-scene-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .inquiry-form { padding: 32px 22px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 0; }
  .booking-photo { --booking-fade-bottom: #f3e8d9; width: 100%; margin: 0; border-radius: 0; }
}

@media (max-width: 359px) {
  .opening-actions .button { font-size: 1.0625rem; }
  .opening-location { font-size: .9375rem; }
  .language-bar .languages { font-size: 1.25rem; }
  .offering-card { padding-inline: 18px; }
  .offering-card h3 { font-size: 1.875rem; }
  .contact-aside-inner .contact-methods { font-size: 1.125rem; }
}
