:root {
      --red: #c90909;
      --red-dark: #a80707;
      --ink: #272727;
      --text: #3f3f3f;
      --muted: #77716c;
      --line: #e4ddd5;
      --card: #fffdfa;
      --shadow: 0 14px 34px rgba(55, 38, 27, .08);
      --wrap: 1180px;
      --body: Roboto, Arial, sans-serif;
      --head: Oswald, Impact, sans-serif;
      --banner-bg: linear-gradient(rgba(255,255,255,.76), rgba(255,255,255,.76)), var(--banner-landscape, var(--landscape, none));
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--body);
      color: var(--text);
      background:
        radial-gradient(circle at 14% 6%, rgba(255,255,255,.86), transparent 430px),
        linear-gradient(180deg, #fbf7f2 0%, #f7f0e9 54%, #fbf8f4 100%);
      line-height: 1.62;
      font-size: 16px;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .18;
      background-image:
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(83, 62, 45, .04) 5px 6px),
        repeating-linear-gradient(90deg, transparent 0 8px, rgba(83, 62, 45, .03) 8px 9px);
      z-index: -1;
    }

    a { color: inherit; text-decoration: none; }
    img, svg { display: block; }
    [hidden] { display: none !important; }
    button, input, textarea, select { font: inherit; }
    button { border: 0; }

    .wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
    .wrap-wide { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
    .page { display: none; animation: pageIn .22s ease both; }
    .page.active { display: block; }
    @keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .grid { display: grid; grid-template-columns: var(--grid, repeat(var(--cols, 2), minmax(0, 1fr))); gap: var(--gap, 28px); }
    .section { padding: clamp(48px, 7vw, 82px) 0; }
    .card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
    .red { color: var(--red); }

    h1, h2, h3, .headline {
      margin: 0;
      font-family: var(--head);
      color: var(--ink);
      text-transform: uppercase;
      letter-spacing: .012em;
      line-height: .98;
      font-weight: 700;
    }
    h1 { font-size: clamp(46px, 6.8vw, 86px); }
    h2 { font-size: clamp(36px, 5vw, 58px); }
    h3 { font-size: clamp(24px, 3vw, 32px); }
    p { margin: 0 0 18px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 56px;
      padding: 0 32px;
      background: var(--red);
      color: #fff;
      cursor: pointer;
      font-weight: 900;
      font-size: 13px;
      letter-spacing: .045em;
      text-transform: uppercase;
      transition: transform .18s ease, background .18s ease, border-color .18s ease;
      white-space: nowrap;
    }
    .btn:hover { background: var(--red-dark); transform: translateY(-1px); }
    .btn.outline { min-height: 42px; background: transparent; color: var(--red); border: 1px solid var(--red); }
    .btn.outline:hover { background: var(--red); color: #fff; }
    .link-red { color: var(--red); font-weight: 700; font-size: 14px; }

    .kicker { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
    .kicker::before { content: ""; width: 36px; height: 3px; background: var(--red); flex: 0 0 auto; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(250, 246, 240, .9);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(226, 216, 207, .78);
    }
    .nav {
      height: 86px;
      display: grid;
      grid-template-columns: 230px minmax(0, 1fr) auto;
      align-items: center;
      gap: 24px;
    }
    .logo { display: inline-flex; align-items: center; gap: 13px; font-weight: 900; text-transform: uppercase; line-height: 1.05; color: #171717; }
    .logo small { display: block; color: var(--red); font-size: 12px; letter-spacing: .06em; margin-top: 2px; }
    .mark-img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
    .asset-fade { position: relative; overflow: hidden; }
    .asset-fade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(248,243,237,.95) 100%); }

    .menu { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.15vw, 34px); min-width: 0; font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .025em; }
    .menu a { height: 86px; display: inline-flex; align-items: center; position: relative; color: #232323; }
    .menu a.active::after, .menu a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
    .nav-cta { justify-self: end; padding-inline: 22px; }
    .burger { display: none; width: 46px; height: 46px; background: rgba(255,255,255,.64); border: 1px solid var(--line); justify-self: end; cursor: pointer; }
    .burger span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px auto; }

    .hero { min-height: calc(100svh - 86px); display: grid; align-items: center; padding: clamp(44px, 7vw, 84px) 0; overflow: hidden; }
    .hero-grid { --grid: minmax(0, .9fr) minmax(0, 1.18fr); --gap: clamp(28px, 5vw, 72px); align-items: center; }
    .hero-copy { max-width: 545px; }
    .hero-copy p { max-width: 440px; margin: 34px 0 42px; font-size: clamp(17px, 1.8vw, 20px); }

    .photo-stage { position: relative; isolation: isolate; min-height: clamp(360px, 48vw, 560px); }
    .photo-stage::before {
      content: "";
      position: absolute;
      left: 6%;
      right: 0;
      top: 6%;
      width: auto;
      height: 72%;
      background-image: var(--hero-backdrop, linear-gradient(90deg, rgba(201,9,9,.94), rgba(201,9,9,.82)));
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      opacity: .96;
      z-index: 0;
    }
    .birds {
      display: none;
    }
    .portrait {
      position: absolute;
      width: var(--w, 34%);
      aspect-ratio: .77;
      padding: 10px 10px 30px;
      background: #eee9e2;
      border: 1px solid #ddd7cf;
      box-shadow: 0 16px 26px rgba(40, 28, 20, .2);
      transform: rotate(var(--r, 0deg));
      filter: grayscale(1);
      z-index: 10;
    }
    .portrait img { width: 100%; height: 100%; object-fit: cover; }
    .photo-stage .p1 { left: 10%; top: 29%; --w: 31%; --r: -5deg; z-index: 13; }
    .photo-stage .p2 { left: 32%; top: 3%; --w: 32%; --r: 7deg; z-index: 14; }
    .photo-stage .p3 { left: 55%; top: 20%; --w: 32%; --r: 8deg; z-index: 13; }
    .photo-stage .p4 { right: 0; top: 31%; --w: 30%; --r: 11deg; z-index: 12; }
    .carnations { position: absolute; left: 39%; top: 50%; width: 44%; height: 42%; z-index: 80; pointer-events: none; background: var(--carnation) center/contain no-repeat; mix-blend-mode: multiply; }

    .about { background: rgba(255,255,255,.43); border-block: 1px solid rgba(228,221,213,.54); }
    .about-grid { --grid: minmax(0, .9fr) minmax(0, 1.35fr); --gap: clamp(36px, 8vw, 110px); align-items: center; }
    .about-copy { max-width: 430px; }
    .landscape { min-height: 280px; opacity: .72; background: var(--landscape) center/contain no-repeat; -webkit-mask-image: radial-gradient(ellipse at center, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 56%, transparent 100%); }

    .heroes-grid { --cols: 4; --gap: 24px; }
    .hero-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(38, 27, 18, .055); }
    .hero-card img { width: 100%; aspect-ratio: 1.07; object-fit: cover; filter: grayscale(1); }
    .hero-card-body { padding: 22px 20px 20px; }
    .hero-card h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; line-height: 1.15; font-size: 21px; margin-bottom: 15px; }
    .years { display: flex; align-items: center; gap: 12px; color: #4f4f4f; font-size: 13px; margin-bottom: 24px; }
    .years::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: 0 0 auto; }

    .banner {
      margin-top: 48px;
      padding: clamp(24px, 3vw, 34px) clamp(22px, 4vw, 38px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 26px;
      border: 2px solid rgba(201,9,9,.34);
      background-color: rgba(255,255,255,.52);
      background-image: var(--banner-bg);
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .banner-title { display: flex; align-items: center; gap: 28px; color: var(--ink); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.18; }

    .page-hero { padding: clamp(48px, 7vw, 76px) 0 clamp(40px, 5vw, 62px); }
    .page-section { padding: clamp(46px, 6vw, 70px) 0; border-top: 1px solid rgba(228,221,213,.55); background: rgba(255,255,255,.24); }
    .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 42px; }
    .how-grid { --grid: minmax(0, .88fr) minmax(0, 1.12fr); --gap: clamp(34px, 7vw, 74px); align-items: start; }
    .lead { margin-top: 30px; font-size: clamp(17px, 1.8vw, 19px); max-width: 470px; }
    .note { margin-top: 42px; padding: 24px; background: rgba(255,255,255,.58); display: flex; gap: 18px; max-width: 390px; }
    .note .icon { color: var(--red); width: 34px; flex: 0 0 auto; }
    .how-landscape { min-height: 165px; margin-top: 34px; opacity: .7; background: var(--how-landscape, var(--landscape)) left center / contain no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%); }

    .steps-card { padding: clamp(26px, 4.6vw, 50px); }
    .step { display: grid; grid-template-columns: 40px 54px 1fr; gap: 20px; align-items: start; position: relative; padding-bottom: 33px; }
    .step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; border-left: 1px solid var(--line); }
    .num { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; z-index: 1; }
    .icon { width: 42px; height: 42px; color: #2f2f2f; }
    .step b { display: block; color: #303030; margin-bottom: 3px; }

    .publish-grid { --grid: minmax(380px, .78fr) minmax(0, 1.22fr); --gap: clamp(52px, 6vw, 90px); align-items: start; }
    .publish-copy { min-width: 0; max-width: 430px; }
    .publish-copy h2 { font-size: clamp(34px, 3.55vw, 48px); overflow-wrap: normal; word-break: normal; hyphens: none; }
    .publish-copy .lead { max-width: 360px; }
    .mini-collage { position: relative; isolation: isolate; min-height: 270px; margin-top: 46px; }
    .mini-collage .portrait { width: 126px; padding-bottom: 16px; }
    .mini-collage .c1 { left: 0; top: 44px; --r: -8deg; }
    .mini-collage .c2 { left: 88px; top: 12px; --r: 4deg; }
    .mini-collage .c3 { left: 176px; top: 40px; --r: 6deg; }
    .mini-collage .carnations { left: 38px; top: 126px; width: 260px; height: 150px; z-index: 90; }

    form { padding: clamp(20px, 3vw, 30px); }
    .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
    .field { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #333; }
    input, select, textarea {
      width: 100%; min-height: 46px; border: 1px solid #ded6cf; background: #fff; color: var(--ink); outline: none; padding: 13px 15px;
    }
    textarea { min-height: 132px; resize: vertical; }
    input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201,9,9,.08); }
    .wide { grid-column: span 2; }
    .full { grid-column: 1 / -1; }
    .upload {
      grid-column: 1 / -1;
      min-height: 104px;
      border: 1px dashed #cfc6be;
      background: rgba(255,255,255,.66);
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      cursor: pointer;
      padding: 24px;
    }
    .upload strong { display: block; color: var(--ink); margin-top: 4px; }
    .check-row { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .check { display: flex; gap: 12px; align-items: flex-start; max-width: 560px; font-size: 13px; }
    .check input { width: 18px; height: 18px; min-height: auto; margin-top: 3px; accent-color: var(--red); }

    .contacts-row { display: grid; grid-template-columns: minmax(340px, 1.12fr) repeat(4, minmax(185px, 1fr)); gap: 24px; align-items: stretch; }
    .contacts-intro { padding-right: 32px; min-width: 0; }
    .contacts-intro h2 { font-size: clamp(42px, 4.4vw, 58px); white-space: nowrap; }
    .contacts-intro p { max-width: 320px; }
    .contact-cards { display: contents; }
    .contact { min-height: 160px; padding: 28px 24px; min-width: 0; }
    .contact .icon { color: var(--red); margin-bottom: 20px; }
    .contact b { display: block; color: #303030; margin-bottom: 6px; }

    footer { padding: 34px 0; border-top: 1px solid var(--line); color: #5e5e5e; font-size: 13px; }
    .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .socials { display: flex; align-items: center; gap: 14px; color: #9b9791; font-weight: 900; }
    .toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(24px); opacity: 0; pointer-events: none; z-index: 90; background: #252525; color: #fff; padding: 14px 20px; transition: .22s; }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    @media (max-width: 1100px) {
      .nav { grid-template-columns: 1fr auto; }
      .menu, .nav-cta { display: none; }
      .burger { display: block; }
      .menu.open {
        display: grid;
        position: absolute;
        left: 0;
        right: 0;
        top: 86px;
        padding: 10px 24px 24px;
        gap: 0;
        background: #fffaf4;
        border-bottom: 1px solid var(--line);
      }
      .menu.open a { height: auto; padding: 15px 0; }
      .hero-grid { --grid: 1fr; }
      .hero { min-height: auto; }
      .photo-stage { max-width: 720px; width: 100%; justify-self: center; }
      .about-grid { --grid: minmax(0, .9fr) minmax(0, 1.1fr); }
      .how-grid { --grid: minmax(0, .88fr) minmax(0, 1.12fr); }
      .publish-grid { --grid: minmax(310px, .72fr) minmax(0, 1.28fr); --gap: 44px; }
      .publish-copy h2 { font-size: clamp(31px, 3.6vw, 42px); }
      .contacts-row { grid-template-columns: minmax(300px, 1fr) repeat(4, minmax(150px, 1fr)); gap: 16px; }
      .contacts-intro h2 { font-size: clamp(36px, 4vw, 48px); }
      .contact { padding: 20px 16px; }
      .heroes-grid { --cols: 2; }
      .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .wide { grid-column: span 1; }
      .mini-collage { display: none; }
    }

    @media (max-width: 820px) {
      .about-grid, .how-grid, .publish-grid { --grid: 1fr; }
      .publish-copy, .publish-copy .lead { max-width: none; }
      .contacts-row { grid-template-columns: 1fr; gap: 16px; }
      .contacts-intro { padding-right: 0; }
      .contacts-intro h2 { font-size: clamp(34px, 6vw, 44px); white-space: normal; }
      .contacts-intro p, .contact { font-size: 14px; }
      .contact { padding: 18px 12px; min-height: 136px; }
      .contact .icon { width: 30px; height: 30px; margin-bottom: 14px; }
      .landscape { min-height: 220px; }
    }

    @media (max-width: 680px) {
      body { font-size: 15px; }
      .wrap, .wrap-wide { width: min(100% - 28px, var(--wrap)); }
      .nav { height: 72px; }
      .menu.open { top: 72px; }
      .logo { font-size: 13px; gap: 10px; }
      .logo small { font-size: 11px; }
      .mark-img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
      .btn { width: 100%; min-height: 52px; padding: 0 20px; }
      .hero-copy .btn { width: auto; }
      .photo-stage { min-height: 340px; margin-top: 6px; }
      .photo-stage .p1 { left: 3%; top: 30%; --w: 35%; }
      .photo-stage .p2 { left: 27%; top: 5%; --w: 36%; }
      .photo-stage .p3 { left: 52%; top: 24%; --w: 36%; }
      .photo-stage .p4 { display: none; }
      .photo-stage::before { left: 4%; right: 0; top: 8%; height: 66%; }
      .carnations { left: 34%; top: 54%; width: 52%; }
      .section-head, .banner, .check-row, .footer-row { flex-direction: column; align-items: stretch; }
      .heroes-grid, .form-grid { --cols: 1; grid-template-columns: 1fr; }
      .full, .upload { grid-column: 1; }
      .step { grid-template-columns: 34px 40px 1fr; gap: 13px; padding-bottom: 26px; }
      .icon { width: 34px; height: 34px; }
      .banner-title { align-items: flex-start; gap: 18px; }
      footer .logo { display: none; }
    }
  
    /* Final visual overrides: carnations must sit above every photo and be large enough. */
    .photo-stage,
    .mini-collage {
      isolation: isolate;
      overflow: visible;
    }

    .photo-stage .portrait,
    .mini-collage .portrait {
      z-index: 10;
    }

    .photo-stage .carnations {
      left: 38%;
      top: 48%;
      width: 50%;
      height: 46%;
      z-index: 999;
      mix-blend-mode: normal;
      filter: drop-shadow(0 10px 8px rgba(0,0,0,.18));
    }

    .mini-collage .carnations {
      left: 78px;
      top: 142px;
      width: 300px;
      height: 190px;
      z-index: 999;
      mix-blend-mode: normal;
      filter: drop-shadow(0 8px 7px rgba(0,0,0,.16));
    }

    @media (max-width: 680px) {
      .photo-stage .carnations {
        left: 30%;
        top: 54%;
        width: 58%;
        height: 42%;
      }
    }

  
    /* Center carnations over the middle of the 4-photo hero collage and make them ~20% larger. */
    .photo-stage .carnations {
      left: 50%;
      top: 54%;
      width: 60%;
      height: 55%;
      transform: translate(-50%, -50%) rotate(-4deg);
      transform-origin: center;
      z-index: 999;
      background-size: contain;
      background-position: center;
    }

    .mini-collage .carnations {
      left: 50%;
      top: 68%;
      width: 360px;
      height: 228px;
      transform: translate(-50%, -50%) rotate(-5deg);
      transform-origin: center;
      z-index: 999;
      background-size: contain;
      background-position: center;
    }

    @media (max-width: 680px) {
      .photo-stage .carnations {
        left: 50%;
        top: 58%;
        width: 68%;
        height: 48%;
      }
    }

  
    /* Mobile correction for carnations: keep them visually centered over the photo cluster. */
    @media (max-width: 680px) {
      .photo-stage .carnations {
        left: 50%;
        top: 54%;
        width: 64%;
        height: 44%;
        transform: translate(-50%, -50%) rotate(-5deg);
      }
    }

    @media (max-width: 430px) {
      .photo-stage {
        min-height: 360px;
      }

      .photo-stage .carnations {
        left: 51%;
        top: 52%;
        width: 66%;
        height: 46%;
        transform: translate(-50%, -50%) rotate(-5deg);
      }
    }

    @media (max-width: 380px) {
      .photo-stage .carnations {
        left: 52%;
        top: 53%;
        width: 64%;
        height: 44%;
      }
    }

  
    @media (max-width: 680px) {
      .birds { display: none; }

      .photo-stage::before {
        left: 2%;
        right: 0;
        top: 10%;
        height: 60%;
        z-index: 0;
      }
    }

  
    /* Hero backdrop: stretch ~25% more and add a strong soft fade on edges */
    .photo-stage::before {
      left: -6%;
      right: -6%;
      top: 2%;
      width: auto;
      height: 86%;
      opacity: .98;
      background-image: var(--hero-backdrop, linear-gradient(90deg, rgba(201,9,9,.94), rgba(201,9,9,.82)));
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      -webkit-mask-image:
        radial-gradient(ellipse at center, #000 52%, rgba(0,0,0,.92) 64%, rgba(0,0,0,.55) 78%, transparent 100%);
      mask-image:
        radial-gradient(ellipse at center, #000 52%, rgba(0,0,0,.92) 64%, rgba(0,0,0,.55) 78%, transparent 100%);
      filter: saturate(1.03) blur(.1px);
    }

    @media (max-width: 680px) {
      .photo-stage::before {
        left: -10%;
        right: -10%;
        top: 4%;
        height: 78%;
        -webkit-mask-image:
          radial-gradient(ellipse at center, #000 50%, rgba(0,0,0,.9) 63%, rgba(0,0,0,.5) 77%, transparent 100%);
        mask-image:
          radial-gradient(ellipse at center, #000 50%, rgba(0,0,0,.9) 63%, rgba(0,0,0,.5) 77%, transparent 100%);
      }
    }

    @media (max-width: 430px) {
      .photo-stage::before {
        left: -14%;
        right: -14%;
        top: 6%;
        height: 74%;
        -webkit-mask-image:
          radial-gradient(ellipse at center, #000 48%, rgba(0,0,0,.88) 60%, rgba(0,0,0,.42) 75%, transparent 100%);
        mask-image:
          radial-gradient(ellipse at center, #000 48%, rgba(0,0,0,.88) 60%, rgba(0,0,0,.42) 75%, transparent 100%);
      }
    }

  
    /* Final hero backdrop correction: grow vertically, keep it inside the photo column, stronger edge fade. */
    .photo-stage {
      overflow: visible;
    }

    .photo-stage::before {
      left: 3%;
      right: 0;
      top: -4%;
      width: auto;
      height: 104%;
      opacity: .98;
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      -webkit-mask-image:
        radial-gradient(ellipse at center,
          #000 34%,
          rgba(0,0,0,.86) 48%,
          rgba(0,0,0,.45) 64%,
          rgba(0,0,0,.12) 78%,
          transparent 100%);
      mask-image:
        radial-gradient(ellipse at center,
          #000 34%,
          rgba(0,0,0,.86) 48%,
          rgba(0,0,0,.45) 64%,
          rgba(0,0,0,.12) 78%,
          transparent 100%);
      z-index: 0;
    }

    @media (max-width: 1100px) {
      .photo-stage::before {
        left: 1%;
        right: 1%;
        top: -2%;
        height: 98%;
      }
    }

    @media (max-width: 680px) {
      .photo-stage::before {
        left: 0;
        right: 0;
        top: 2%;
        height: 82%;
        -webkit-mask-image:
          radial-gradient(ellipse at center,
            #000 32%,
            rgba(0,0,0,.82) 47%,
            rgba(0,0,0,.38) 62%,
            rgba(0,0,0,.10) 77%,
            transparent 100%);
        mask-image:
          radial-gradient(ellipse at center,
            #000 32%,
            rgba(0,0,0,.82) 47%,
            rgba(0,0,0,.38) 62%,
            rgba(0,0,0,.10) 77%,
            transparent 100%);
      }
    }

    @media (max-width: 430px) {
      .photo-stage::before {
        left: 0;
        right: 0;
        top: 4%;
        height: 78%;
      }
    }

  
    /* Kill visible rectangular borders of the hero backdrop. */
    .photo-stage::before {
      left: 4%;
      right: 2%;
      top: -2%;
      height: 100%;
      opacity: .96;
      -webkit-mask-image:
        radial-gradient(ellipse at center,
          #000 22%,
          rgba(0,0,0,.78) 38%,
          rgba(0,0,0,.34) 52%,
          rgba(0,0,0,.08) 63%,
          transparent 72%);
      mask-image:
        radial-gradient(ellipse at center,
          #000 22%,
          rgba(0,0,0,.78) 38%,
          rgba(0,0,0,.34) 52%,
          rgba(0,0,0,.08) 63%,
          transparent 72%);
    }

    .photo-stage::after {
      content: "";
      position: absolute;
      left: 2%;
      right: 0;
      top: -4%;
      height: 106%;
      z-index: 1;
      pointer-events: none;
      background:
        linear-gradient(90deg,
          #f8f3ed 0%,
          rgba(248,243,237,.92) 7%,
          rgba(248,243,237,.28) 18%,
          transparent 34%,
          transparent 62%,
          rgba(248,243,237,.30) 82%,
          rgba(248,243,237,.94) 95%,
          #f8f3ed 100%),
        linear-gradient(180deg,
          #f8f3ed 0%,
          rgba(248,243,237,.88) 8%,
          rgba(248,243,237,.24) 20%,
          transparent 36%,
          transparent 64%,
          rgba(248,243,237,.28) 82%,
          rgba(248,243,237,.94) 96%,
          #f8f3ed 100%);
      mix-blend-mode: normal;
    }

    @media (max-width: 1100px) {
      .photo-stage::before {
        left: 2%;
        right: 2%;
        top: 0;
        height: 94%;
      }

      .photo-stage::after {
        left: 0;
        right: 0;
        top: -2%;
        height: 98%;
      }
    }

    @media (max-width: 680px) {
      .photo-stage::before {
        left: 0;
        right: 0;
        top: 4%;
        height: 78%;
        -webkit-mask-image:
          radial-gradient(ellipse at center,
            #000 20%,
            rgba(0,0,0,.72) 36%,
            rgba(0,0,0,.28) 50%,
            rgba(0,0,0,.06) 62%,
            transparent 70%);
        mask-image:
          radial-gradient(ellipse at center,
            #000 20%,
            rgba(0,0,0,.72) 36%,
            rgba(0,0,0,.28) 50%,
            rgba(0,0,0,.06) 62%,
            transparent 70%);
      }

      .photo-stage::after {
        top: 2%;
        height: 82%;
      }
    }

    @media (max-width: 430px) {
      .photo-stage::before {
        top: 7%;
        height: 72%;
      }

      .photo-stage::after {
        top: 5%;
        height: 76%;
      }
    }
    .file-name { display: block; color: var(--red); margin-top: 6px; font-weight: 800; }
    .form-error { margin-top: 16px; color: #9b0808; font-weight: 800; font-size: 13px; }
    .modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
    .modal-backdrop { position: absolute; inset: 0; background: rgba(31, 24, 20, .54); backdrop-filter: blur(4px); }
    .modal-panel { position: relative; width: min(760px, 100%); max-height: min(760px, calc(100svh - 48px)); overflow: auto; background: #fffdfa; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(26, 18, 13, .28); padding: clamp(24px, 4vw, 42px); }
    .modal-x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; background: #f4eee7; color: var(--ink); font-size: 28px; line-height: 1; }
    .modal-x:hover { background: var(--red); color: #fff; }
    .story-panel { width: min(980px, 100%); padding: clamp(22px, 3vw, 34px); }
    .story-modal-grid { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 42px); align-items: start; }
    .story-modal-side img { width: 100%; aspect-ratio: .86; object-fit: cover; filter: grayscale(1); border: 1px solid var(--line); }
    .story-modal-side h3 { margin-top: 20px; font-family: var(--body); text-transform: none; line-height: 1.12; font-size: clamp(22px, 2.2vw, 28px); }
    .story-modal-side .years { margin-top: 12px; margin-bottom: 0; }
    .story-modal-body { padding-right: 26px; }
    .story-modal-body p { white-space: pre-line; font-size: 17px; }
    .auth-panel, .result-panel { width: min(560px, 100%); }
    .auth-panel p, .result-panel p { margin-top: 18px; }
    .auth-buttons { margin-top: 24px; display: grid; gap: 12px; }
    .result-meta { color: var(--muted); font-size: 13px; }
    .close-wide { margin-top: 18px; min-width: 180px; }
    @media (max-width: 820px) {
      .story-modal-grid { grid-template-columns: 1fr; }
      .story-modal-side { max-width: 420px; }
      .story-modal-body { padding-right: 0; }
    }
    @media (max-width: 680px) {
      .modal { padding: 14px; }
      .modal-panel { max-height: calc(100svh - 28px); }
    }
