/* Summary section — code-first readability fix.
   No blurred background image, no text/image overlap, GitHub Pages safe. */
/* Windows-safe Vietnamese typography.
   Times New Roman is used first because it ships with Windows and fully
   supports Vietnamese precomposed glyphs. No remote font is required. */
.summary-lead,
.summary-achievements li,
.summary-quote-card p{
  /* Segoe UI is the most reliable Vietnamese system font on Windows. */
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-style:normal!important;
  font-stretch:normal!important;
  font-synthesis:none!important;
  font-variant:normal!important;
  font-variant-ligatures:none!important;
  font-kerning:none!important;
  font-feature-settings:"liga" 0,"clig" 0,"kern" 0!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  text-rendering:auto!important;
  -webkit-font-smoothing:antialiased;
}

.summary-section--polished{
  position:relative;
  padding-bottom:clamp(72px,7vw,118px);
}
.summary-section--polished .section-heading{
  margin-bottom:clamp(28px,3vw,46px);
}

.summary-showcase{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(540px,1.08fr) minmax(420px,.92fr);
  gap:clamp(42px,4vw,72px);
  align-items:start;
  min-height:0;
  padding:clamp(52px,4.8vw,76px);
  border:1px solid rgba(18,47,74,.24);
  background:
    radial-gradient(circle at 82% 14%,rgba(255,255,255,.72),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.32),rgba(242,233,219,.14));
  overflow:hidden;
}
.summary-showcase::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

/* Left card: made entirely with CSS so it stays sharp at any size. */
.summary-paper-note{
  position:relative;
  z-index:2;
  min-height:500px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(54px,4.4vw,76px) clamp(46px,4.2vw,72px);
  color:#fff;
  background:transparent;
  clip-path:none;
  box-shadow:none;
  isolation:isolate;
}
.summary-paper-note::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(145deg,rgba(255,255,255,.035),transparent 45%),
    #12395e;
  clip-path:polygon(
    1.2% 3.5%, 9% 2.5%, 18% 3.2%, 28% 2.2%, 38% 3.1%, 49% 2.4%, 60% 3.4%, 71% 2.5%, 82% 3.2%, 91% 2.4%, 99% 4.1%,
    98.5% 94.5%, 91% 96.1%, 83% 95.4%, 74% 97%, 65% 95.8%, 55% 96.7%, 45% 95.6%, 35% 96.8%, 25% 95.7%, 15% 96.5%, 2% 94.6%
  );
  box-shadow:0 22px 36px rgba(16,34,52,.20);
  pointer-events:none;
}
.summary-paper-note::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.12;
  mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.22'/%3E%3C/svg%3E");
}
.summary-lead{
  position:relative;
  z-index:1;
  max-width:680px;
  margin:0 0 26px;
  color:#fff;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif;
  font-size:clamp(19px,1.22vw,23px);
  line-height:1.58;
  letter-spacing:.002em;
  text-wrap:pretty;
  text-shadow:0 1px 0 rgba(0,0,0,.12);
  font-weight:500;
}
.summary-achievements{
  position:relative;
  z-index:1;
  list-style:none;
  display:grid;
  gap:0;
  margin:0;
  padding:0;
}
.summary-achievements li{
  position:relative;
  min-height:58px;
  display:flex;
  align-items:center;
  padding:13px 0 13px 62px;
  border-bottom:1px dashed rgba(255,255,255,.44);
  color:#fff;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif;
  font-size:clamp(18px,1.12vw,21px);
  line-height:1.42;
  text-shadow:0 1px 0 rgba(0,0,0,.10);
  font-weight:600;
}
.summary-achievements li:last-child{border-bottom:0}
.summary-achievements li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:50%;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1.5px solid rgba(255,255,255,.92);
  border-radius:50%;
  transform:translateY(-50%);
  font-family:Arial,sans-serif;
  font-size:20px;
  line-height:1;
  color:#fff;
}

/* Right column: quote and photo are normal-flow grid rows, never overlap. */
.summary-editorial-stack{
  position:relative;
  z-index:3;
  min-height:0;
  display:grid;
  grid-template-rows:auto auto;
  gap:clamp(28px,2.8vw,42px);
  align-content:start;
  padding-top:52px;
}
.summary-quote-card{
  position:relative;
  z-index:2;
  min-height:0;
  margin:0 48px 0 0;
  padding:clamp(42px,3.2vw,56px) clamp(38px,3.2vw,54px);
  border:1px solid rgba(99,74,45,.24);
  background:
    linear-gradient(145deg,rgba(255,255,255,.72),rgba(247,237,222,.92)),
    #f6edde;
  box-shadow:0 18px 34px rgba(55,39,24,.12);
  transform:none;
}
.summary-quote-card p{
  max-width:560px;
  margin:0 auto;
  color:#17324d;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif;
  font-size:clamp(19px,1.22vw,23px);
  line-height:1.62;
  text-align:center;
  text-wrap:pretty;
  font-weight:400;
}
.summary-ornament{
  width:180px;
  margin:0 auto 20px;
  overflow:visible;
  fill:none;
  stroke:#8c704d;
  stroke-width:1.3;
}
.summary-photo-card{
  position:relative;
  z-index:4;
  width:calc(100% - 24px);
  max-width:620px;
  height:clamp(240px,17vw,300px);
  margin:0 0 0 auto;
  padding:12px;
  overflow:hidden;
  background:#f8f1e6;
  box-shadow:0 22px 36px rgba(18,47,74,.18);
  transform:rotate(-1.25deg);
}
.summary-photo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:72% 58%;
  filter:sepia(.08) saturate(.9) contrast(1.06);
}
.summary-seal-asset{
  position:absolute;
  right:2%;
  bottom:-28px;
  z-index:7;
  width:118px;
  height:auto;
  filter:drop-shadow(0 10px 8px rgba(87,18,28,.28));
  transform:rotate(5deg);
  pointer-events:none;
}
.summary-inkwell-asset{
  position:absolute;
  top:18px;
  right:26px;
  z-index:8;
  width:126px;
  height:auto;
  filter:drop-shadow(0 16px 16px rgba(15,33,49,.22));
  pointer-events:none;
}
.summary-tape{
  position:absolute;
  z-index:9;
  width:92px;
  height:28px;
  background:rgba(201,180,147,.66);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  pointer-events:none;
}
.summary-tape--paper{left:42px;top:48px;transform:rotate(-23deg)}
.summary-tape--quote{right:31%;top:45px;transform:rotate(7deg)}
.summary-sparkle{display:none}

html[data-theme="dark"] .summary-showcase{
  background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(0,0,0,.06));
  border-color:rgba(241,234,223,.22);
}
html[data-theme="dark"] .summary-quote-card{
  background:linear-gradient(145deg,#202c38,#17232f);
  border-color:rgba(255,255,255,.12);
}
html[data-theme="dark"] .summary-quote-card p{color:#f3eadc}

@media (max-width:1320px){
  .summary-showcase{
    grid-template-columns:minmax(500px,1fr) minmax(380px,.9fr);
    gap:36px;
    padding:48px 40px 64px;
  }
  .summary-paper-note{min-height:470px;padding:58px 48px}
  .summary-editorial-stack{padding-top:56px}
  .summary-quote-card{margin-right:34px;padding:42px 36px}
  .summary-inkwell-asset{width:112px;right:18px}
}

@media (max-width:1080px){
  .summary-showcase{
    grid-template-columns:1fr;
    gap:36px;
    padding:48px 40px 72px;
  }
  .summary-paper-note{min-height:0}
  .summary-editorial-stack{
    width:min(100%,760px);
    margin:0 auto;
    padding-top:38px;
  }
  .summary-quote-card{margin-right:70px}
  .summary-inkwell-asset{top:auto;bottom:360px;right:34px;width:116px}
  .summary-tape--quote{right:34%;top:auto;bottom:352px}
}

@media (max-width:720px){
  .summary-section--polished{padding-bottom:64px}
  .summary-showcase{padding:28px 16px 58px;overflow:visible}
  .summary-paper-note{
    padding:48px 28px 40px;
    clip-path:polygon(1% 2%,99% 2%,98% 96%,2% 98%);
  }
  .summary-lead{font-size:17px;line-height:1.55}
  .summary-achievements li{padding-left:46px;min-height:50px;font-size:16px}
  .summary-achievements li::before{width:30px;height:30px;font-size:16px}
  .summary-editorial-stack{padding-top:0;gap:22px}
  .summary-quote-card{
    margin:0;
    padding:38px 24px;
    transform:none;
  }
  .summary-quote-card p{font-size:17px;line-height:1.58}
  .summary-photo-card{
    width:100%;
    height:220px;
    transform:none;
  }
  .summary-seal-asset{width:92px;right:5%;bottom:-18px}
  .summary-inkwell-asset{display:none}
  .summary-tape--paper{left:14px;top:22px}
  .summary-tape--quote{display:none}
}

@media (prefers-reduced-motion:reduce){
  .summary-photo-card,.summary-quote-card{transform:none!important}
}
