:root{
  --gold:#EBD50D;
  --gold-soft:rgba(235,213,13,0.28);
  --text:#f7f1d0;
  --muted:#e5dbb2;
  --panel-a:rgba(10,10,10,0.76);
  --panel-b:rgba(18,18,18,0.80);
  --panel-c:rgba(28,28,28,0.74);
  --line:rgba(255,255,255,0.18);
  --shadow:rgba(0,0,0,0.58);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

body.calculator-page{
  position:relative;
  overflow-x:hidden;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:#000;
}

body::before{
  content:"";
  position:fixed;
  top:-133.333333vw;
  right:0;
  bottom:0;
  left:0;
  z-index:-2;
  background-image:url("Background Panning.JPG");
  /* The source image is 3:4. At 100vw wide, one tile is 133.333vw tall. */
  background-repeat:repeat-y;
  background-size:100vw auto;
  background-position:center top;
  animation:solver-pan-down 50s linear infinite;
  will-change:transform;
  transform:translate3d(0, 0, 0);
  backface-visibility:hidden;
  pointer-events:none;
}

.calculator-page .copy p > img.inline-stone-patternizer-logo{
  display:inline-block !important;
  width:auto !important;
  height:2em !important;
  max-width:none !important;
  max-height:2em !important;
  margin:0 .12em !important;
  padding:0 !important;
  vertical-align:-.55em !important;
  object-fit:contain !important;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg, rgba(0,0,0,0.26), rgba(0,0,0,0.44));
  pointer-events:none;
}

@keyframes solver-pan-down{
  from{ transform:translate3d(0, 0, 0); }
  to{ transform:translate3d(0, 133.333333vw, 0); }
}

@media (prefers-reduced-motion:reduce){
  body::before{
    animation:none;
    transform:none;
  }
}

.frame{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:22px;
}

.panel{
  width:min(1520px, 100%);
  min-height:560px;
  display:grid;
  grid-template-columns:340px 1px minmax(0, 1fr);
  gap:34px;
  padding:26px 30px 30px;
  border-radius:26px;
  border:1px solid rgba(235,213,13,0.14);
  background:
    linear-gradient(
      90deg,
      var(--panel-a) 0%,
      var(--panel-b) 55%,
      var(--panel-c) 100%
    );
  backdrop-filter:blur(8px);
  box-shadow:
    0 22px 44px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.left{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
}

.brand{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.logo{
  width:260px;
  margin:0;
  filter:drop-shadow(0 10px 10px rgba(0,0,0,.65));
}

.divider{
  display:none;
}

.preview-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  margin:0;
}

.preview{
  width:min(100%, 300px);
  aspect-ratio:1 / 1;
  object-fit:contain;

  background:none;   /* removes white backing */
  padding:0;         /* removes spacing around image */
  border:none;       /* removes outline */
  box-shadow:none;   /* removes shadow */
}

.vline{
  width:1px;
  background:var(--line);
}

.right{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.page-title{
  margin:0 0 22px;
  font-size:54px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#f3f0e4;
  white-space:nowrap;
}

.copy{
  color:var(--muted);
  min-width:0;
}

.copy p{
  margin:0 0 24px;
  font-size:17px;
  line-height:1.55;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.copy strong{
  display:block;
  color:#fff8dc;
  font-size:26px;
  font-weight:900;
  line-height:1.15;
  margin:0 0 8px;
}

.scale-example-layout{
  display:grid;
  grid-template-columns:minmax(0, 0.66fr) minmax(230px, 0.34fr);
  gap:20px;
  align-items:start;
  margin:-4px 0 0;
}

.scale-section{
  margin:0;
  color:var(--muted);
  text-transform:uppercase;
}

.scale-title{
  margin:0 0 4px;
  color:#fff8dc;
  font-size:26px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.scale-subtitle{
  margin:0 0 8px;
  color:var(--muted);
  font-size:10px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.scale-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}

.scale-column{
  min-width:0;
  padding:8px 9px 9px;
  border:1px solid rgba(235,213,13,0.26);
  border-radius:8px;
  background:rgba(8,8,8,0.28);
}

.scale-column h3{
  margin:0 0 6px;
  color:#fff8dc;
  font-size:13px;
  font-weight:900;
  line-height:1;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.scale-column dl{
  display:grid;
  gap:2px;
  margin:0;
}

.scale-column dl div{
  display:grid;
  grid-template-columns:3.5ch 1ch max-content;
  align-items:center;
  justify-content:start;
  gap:13px;
  min-height:18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
}

.scale-column dl div:last-child{
  border-bottom:none;
}

.scale-column dt,
.scale-equals,
.scale-column dd{
  margin:0;
}

.scale-equals{
  color:#fff8dc;
  text-align:center;
  }

.scale-column dd{
  color:#fff8dc;
}

.example-panel{
  min-width:0;
  color:var(--muted);
  text-transform:uppercase;
}

.example-panel-title{
  margin:0 0 8px;
  color:#fff8dc;
  font-size:26px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.example-preview{
  width:min(100%, 230px);
  aspect-ratio:1 / 1;
  object-fit:contain;
  margin:0 0 10px;
  filter:drop-shadow(0 9px 10px rgba(0,0,0,.45));
}

.example-copy{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.34;
  font-weight:800;
  letter-spacing:.035em;
}

.lower{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.gold-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  border:none;
  cursor:pointer;
  color:#111;
  text-transform:uppercase;
  font-weight:800	;
  letter-spacing:.08em;
  white-space:nowrap;
  background:
    radial-gradient(120% 85% at 50% 18%, rgba(255,255,255,.45) 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #fff6a8 0%, #EBD50D 45%, #b79a10 100%);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.42),
    0 0 16px rgba(235,213,13,0.18),
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.28);
  transition:transform .18s ease, box-shadow .18s ease;
}

.gold-btn:hover{
  transform:translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.46),
    0 0 16px rgba(235,213,13,0.22),
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.28);
}

.gold-btn:active{
  transform:translateY(0);
}

.gold-btn--large{
  min-width:260px;
  min-height:45px;
  padding:0 26px;
  border-radius:16px;
  font-size:18px;
  border:none}

.logo-link{
  display:inline-block;
  cursor:pointer;
}

.logo{
  transition:transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.logo-link:hover .logo{
  transform:scale(1.04); /* slight zoom */
  opacity:0.9;           /* subtle fade */
  filter:drop-shadow(0 12px 18px rgba(0,0,0,0.7));
}

.example-title{
  text-align:center;

  font-size:24px;            /* matches your section header size */
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;

  color:#fff8dc;             /* same as your strong headers */
  
  margin-top:6px;
  margin-bottom:0px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px){
  .page-title{
    font-size:48px;
    letter-spacing:.06em;
  }

  .copy p{
    font-size:16px;
  }

  .copy strong{
    font-size:24px;
  }

  .scale-title{
    font-size:24px;
  }

  .scale-subtitle{
    font-size:15px;
  }

  .scale-column h3{
    font-size:15px;
  }
}

@media (max-width: 1200px){
  .panel{
    grid-template-columns:300px 1px minmax(0, 1fr);
    gap:26px;
    padding:22px 24px 24px;
  }

  .left{
    gap:14px;
  }

  .logo{
    width:240px;
  }

  .page-title{
    font-size:42px;
    letter-spacing:.05em;
  }

  .copy p{
    font-size:15px;
  }

  .copy strong{
    font-size:22px;
  }

  .scale-title{
    font-size:22px;
  }

  .scale-grid{
    gap:10px;
  }

  .gold-btn--large{
    min-width:220px;
    min-height:60px;
    font-size:20px;
  }
}

@media (max-width: 900px){
  body::before{
    background-size:100vw auto;
  }

  .frame{
    padding:14px;
    align-items:flex-start;
  }

  .panel{
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "title"
      "copy"
      "example-title"
      "preview"
      "scale"
      "button";
    gap:20px;
    min-height:auto;
    padding:18px 18px 24px;
  }

  .left,
  .right{
    display:contents;
  }

  .vline,
  .divider{
    display:none;
  }

  .brand{
    grid-area:brand;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
  }

  .preview-wrap{
    grid-area:preview;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:-4px;
  }

  .example-title{
    grid-area:example-title;
    display:block;
    width:100%;
    margin:0 0 -8px;
    text-align:center;
    font-size:20px;
  }

  .logo{
    width:min(240px, 72vw);
  }

  .preview{
    width:min(280px, 82vw);
  }

  .page-title{
    grid-area:title;
    font-size:clamp(34px, 7vw, 46px);
    letter-spacing:.04em;
    text-align:center;
    white-space:normal;
    margin:0;
  }

  .copy{
    grid-area:copy;
    width:100%;
    max-width:1100px;
    margin:0 auto;
    text-align:center;
  }

  .copy p{
    font-size:15px;
    line-height:1.48;
    letter-spacing:.03em;
    margin-bottom:0px;
    text-align:center;
  }

  .copy strong{
    display:block;
    width:100%;
    font-size:22px;
    line-height:1.15;
    margin:0 0 8px 0;
    white-space:nowrap;
    text-align:center;
  }

  .scale-section{
    grid-area:scale;
    width:100%;
    text-align:center;
  }

  .scale-grid{
    max-width:720px;
    margin:0 auto;
    text-align:left;
  }

  .lower{
    grid-area:button;
    margin-top:6px;
    display:flex;
    justify-content:center;
    width:100%;
  }

  .gold-btn--large{
    width:min(260px, 78vw);
    min-width:unset;
    min-height:60px;
    font-size:20px;
  }
  
}
@media (max-width: 480px){
  .frame{
    padding:10px;
  }

  .panel{
    border-radius:18px;
    padding:14px 12px 20px;
    gap:16px;
  }

  .left{
    gap:12px;
  }

  .logo{
    width:min(210px, 78vw);
  }

  .preview{
    width:min(220px, 84vw);
    padding:8px;
  }

  .example-title{
    margin:0 0 -6px;
    font-size:16px;
    letter-spacing:.06em;
  }

  .page-title{
    font-size:clamp(30px, 8vw, 36px);
    line-height:1.08;
    letter-spacing:.03em;
    margin-bottom:14px;
  }

  .copy p{
    font-size:12px;
    line-height:1.42;
    letter-spacing:.02em;
    margin-bottom:16px;
  }

  .copy strong{
    display:block;
    width:100%;
    font-size:15px;
    line-height:1.12;
    margin:0 0 7px 0;
    white-space:nowrap;
    text-align:center;
  }

  .scale-title{
    font-size:15px;
  }

  .copy-heading--option-one span{
    display:block;
  }

  .scale-subtitle{
    margin-bottom:10px;
    font-size:10px;
    line-height:1.25;
  }

  .scale-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:6px;
  }

  .scale-column{
    padding:7px 6px 8px;
  }

  .scale-column h3{
    font-size:10px;
  }

  .scale-column dl div{
    min-height:18px;
    grid-template-columns:3.3ch 1ch max-content;
    gap:10px;
    font-size:8.5px;
    letter-spacing:0;
  }

  .gold-btn--large{
    width:min(220px, 88vw);
    min-height:54px;
    border-radius:14px;
    font-size:16px;
    padding:0 16px;
    border-width:3px;
  }
}

@media (max-width: 320px){
  .frame{
    padding:6px;
  }

  .panel{
    padding:10px 8px 16px;
    border-radius:14px;
    gap:12px;
  }

  .left{
    gap:10px;
  }

  .logo{
    width:min(180px, 82vw);
  }

  .preview{
    width:min(180px, 82vw);
    padding:6px;
  }

  .page-title{
    font-size:26px;
    letter-spacing:.02em;
    margin-bottom:10px;
  }

  .copy p{
    font-size:10px;
    line-height:1.35;
    letter-spacing:.01em;
    margin-bottom:12px;
  }

  .copy strong{
    display:block;
    width:100%;
    font-size:12px;
    line-height:1.1;
    margin:0 0 6px 0;
    white-space:nowrap;
    text-align:center;
  }

  .gold-btn--large{
    width:min(190px, 88vw);
    min-height:48px;
    font-size:13px;
    border-radius:12px;
  }

}

@media (max-width: 250px){
  .frame{
    padding:4px;
  }

  .panel{
    padding:8px 6px 14px;
    border-radius:10px;
    gap:10px;
  }

  .left{
    gap:8px;
  }

  .logo{
    width:min(150px, 84vw);
  }

  .preview{
    width:min(145px, 84vw);
    padding:4px;
  }

  .page-title{
    font-size:22px;
    line-height:1.1;
    letter-spacing:.01em;
    margin-bottom:8px;
  }

  .copy p{
    font-size:9px;
    line-height:1.3;
    letter-spacing:0;
    margin-bottom:10px;
  }

  .copy strong{
    display:block;
    width:100%;
    font-size:10px;
    line-height:1.05;
    margin:0 0 5px 0;
    white-space:nowrap;
    text-align:center;
  }

  .gold-btn--large{
    width:min(165px, 88vw);
    min-height:42px;
    font-size:11px;
    letter-spacing:.04em;
    border-radius:10px;
    border-width:2px;
    padding:0 10px;
  }
}

.page-title--logo{
  margin:0 0 -6px;
  line-height:0;
  white-space:normal;
}

.pattern-professor-picture{
  display:block;
  width:100%;
}

.pattern-professor-logo{
  display:block;
  height:auto;
  filter:drop-shadow(0 10px 12px rgba(0,0,0,.58));
}

.pattern-professor-copyright{
  display:block;
  margin:-18px 0 12px;
  color:#f3eac5;
  font-size:15.4px;
  font-weight:700;
  line-height:1.17;
  letter-spacing:0;
  text-transform:none;
}

.pattern-professor-copyright-symbol{
  font-size:1em;
  line-height:1;
  vertical-align:baseline;
}

.pattern-professor-logo--calculator{
  width:min(780px, 100%);
}

@media (max-width:1400px){
  .pattern-professor-logo--calculator{
    width:min(720px, 100%);
  }
}

@media (max-width:1200px){
  .pattern-professor-logo--calculator{
    width:min(640px, 100%);
  }
}

@media (max-width:900px){
  .page-title--logo{
    display:flex;
    justify-content:center;
    margin:0 0 2px;
  }

  .pattern-professor-logo--calculator{
    width:min(620px, 88vw);
  }
}

@media (max-width:620px){
  .page-title--logo{
    margin:0 0 10px;
  }

  .pattern-professor-logo--calculator{
    width:min(390px, 94vw);
  }

  .pattern-professor-copyright{
    margin:4px auto 0;
    text-align:center;
    font-size:11px;
    line-height:1.24;
  }
}

@media (max-width:480px){
  .page-title--logo{
    margin-bottom:8px;
  }

  .pattern-professor-logo--calculator{
    width:min(350px, 94vw);
  }

  .pattern-professor-copyright{
    margin-top:4px;
    font-size:10px;
  }
}

@media (max-width:250px){
  .pattern-professor-logo--calculator{
    width:min(220px, 94vw);
  }
}

/* Scale + example section layout */
.scale-example-layout{
  display:grid;
  grid-template-columns:minmax(0, 0.66fr) minmax(230px, 0.34fr);
  gap:20px;
  align-items:start;
  margin:-4px 0 0;
}

.scale-section{
  margin:0;
}

.scale-subtitle{
  margin-bottom:8px;
  font-size:12px;
}

.scale-grid{
  gap:8px;
}

.scale-column{
  padding:8px 9px 9px;
}

.scale-column h3{
  margin-bottom:6px;
  font-size:15px;
}

.scale-column dl{
  gap:2px;
}

.scale-column dl div{
  grid-template-columns:3.5ch 1ch max-content;
  gap:16px;
  min-height:21px;
  font-size:14px;
}

.example-panel{
  min-width:0;
  padding-left:18px;
  border-left:1px solid var(--line);
  color:var(--muted);
  text-transform:uppercase;
}

.example-panel-title{
  margin:0 0 8px;
  color:#fff8dc;
  font-size:26px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.example-preview{
  width:min(100%, 230px);
  aspect-ratio:1 / 1;
  object-fit:contain;
  margin:0 0 10px;
  filter:drop-shadow(0 9px 10px rgba(0,0,0,.45));
}

.example-copy{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.34;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}

@media (max-width:1400px){
  .scale-subtitle,
  .example-copy{
    font-size:10px;
  }

  .scale-column h3{
    font-size:14px;
  }

  .example-panel-title{
    font-size:24px;
  }
}

@media (max-width:1200px){
  .scale-example-layout{
    grid-template-columns:minmax(0, 0.64fr) minmax(210px, 0.36fr);
    gap:16px;
  }

  .scale-grid{
    gap:7px;
  }

  .scale-column{
    padding:7px 8px 8px;
  }

  .scale-column dl div{
    gap:12px;
    font-size:13px;
  }
}

@media (max-width:620px){
  .scale-column h3{
    font-size:12px;
  }

  .scale-column dl div{
    gap:8px;
    min-height:18px;
    font-size:10px;
  }
}

@media (max-width:900px){
  .panel{
    grid-template-areas:
      "brand"
      "title"
      "copy"
      "scale-example"
      "button";
  }

  .scale-example-layout{
    grid-area:scale-example;
    grid-template-columns:1fr;
    gap:18px;
    width:100%;
    max-width:1100px;
    margin:0 auto;
  }

  .scale-section{
    grid-area:auto;
    width:100%;
    text-align:center;
  }

  .scale-grid{
    max-width:720px;
    margin:0 auto;
    text-align:left;
  }

  .example-panel{
    padding-left:0;
    border-left:none;
    text-align:center;
  }

  .example-panel-title{
    font-size:22px;
  }

  .example-preview{
    width:min(280px, 82vw);
    margin:0 auto 10px;
  }

  .example-copy{
    max-width:760px;
    margin:0 auto;
    font-size:13px;
    line-height:1.38;
    text-align:center;
  }
}

@media (max-width:480px){
  .example-panel-title{
    font-size:18px;
  }

  .example-preview{
    width:min(220px, 84vw);
  }

  .example-copy{
    font-size:10px;
    line-height:1.34;
    letter-spacing:.02em;
  }
}

@media (max-width:320px){
  .example-preview{
    width:min(180px, 82vw);
  }

  .example-copy{
    font-size:9px;
    line-height:1.3;
  }
}

@media (max-width:250px){
  .example-preview{
    width:min(145px, 84vw);
  }

  .example-copy{
    font-size:8px;
  }
}

/* Removed the Kendra Masonry side column; let the calculator content own the panel. */
.panel{
  grid-template-columns:1fr;
  gap:0;
}

.left,
.vline,
.divider,
.brand{
  display:none;
}

.right{
  width:100%;
}

@media (max-width:1200px){
  .panel{
    grid-template-columns:1fr;
    gap:0;
  }
}

@media (max-width:900px){
  .panel{
    grid-template-areas:
      "title"
      "copy"
      "scale-example"
      "button";
  }
}

/* Keep the final CTA aligned to the left side of the content area. */
.lower{
  justify-content:flex-start;
}

/* Match the Scale section text to the main paragraph sizing. */
.scale-subtitle,
.scale-column h3,
.scale-column dl div{
  font-size:17px;
  line-height:1.35;
}

.scale-column{
  padding:10px 11px 11px;
}

.scale-column dl div{
  min-height:26px;
}

@media (min-width:901px){
  .scale-example-layout{
    grid-template-columns:minmax(0, 0.74fr) minmax(240px, 0.26fr);
    gap:24px;
  }

  .scale-grid{
    width:100%;
    gap:14px;
  }

  .scale-column{
    min-height:172px;
    padding:14px 16px 16px;
  }

  .scale-column h3{
    margin-bottom:10px;
  }

  .scale-column dl{
    gap:4px;
  }

  .scale-column dl div{
    grid-template-columns:3.8ch 1.1ch max-content;
    gap:20px;
    min-height:28px;
  }
}

@media (max-width:1400px){
  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:16px;
  }
}

@media (max-width:1200px){
  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:15px;
  }
}

@media (max-width:620px){
  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:12px;
  }
}

@media (max-width:480px){
  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:10px;
  }
}

@media (max-width:380px){
  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:9px;
  }
}

.example-panel{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.example-preview{
  width:min(100%, 270px);
}

@media (max-width:900px){
  .example-panel{
    align-items:center;
  }

  .example-preview{
    width:min(280px, 82vw);
  }
}

/* Make the Scale section typography larger after the desktop card expansion. */
.scale-title{
  font-size:32px;
}

.scale-subtitle{
  font-size:18px;
  line-height:1.35;
}

.scale-column h3{
  font-size:21px;
  line-height:1.1;
}

.scale-column dl div{
  font-size:19px;
  line-height:1.15;
  min-height:32px;
}

@media (min-width:901px){
  .scale-column{
    min-height:198px;
    padding:16px 18px 18px;
  }

  .scale-column dl{
    gap:5px;
  }

  .scale-column dl div{
    gap:24px;
  }
}

@media (max-width:1400px){
  .scale-title{
    font-size:30px;
  }

  .scale-subtitle{
    font-size:17px;
  }

  .scale-column h3{
    font-size:20px;
  }

  .scale-column dl div{
    font-size:18px;
  }
}

@media (max-width:1200px){
  .scale-title{
    font-size:28px;
  }

  .scale-subtitle{
    font-size:16px;
  }

  .scale-column h3{
    font-size:18px;
  }

  .scale-column dl div{
    font-size:17px;
  }
}

@media (max-width:620px){
  .scale-title{
    font-size:18px;
  }

  .scale-subtitle{
    font-size:13px;
  }

  .scale-column h3,
  .scale-column dl div{
    font-size:13px;
  }
}

@media (max-width:480px){
  .scale-title{
    font-size:16px;
  }

  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:11px;
  }
}

@media (max-width:380px){
  .scale-title{
    font-size:14px;
  }

  .scale-subtitle,
  .scale-column h3,
  .scale-column dl div{
    font-size:10px;
  }
}

/* Larger desktop Pattern Professor heading logo. */
@media (min-width:901px){
  .pattern-professor-logo--calculator{
    width:min(980px, 100%);
  }
}

@media (min-width:901px) and (max-width:1200px){
  .pattern-professor-logo--calculator{
    width:min(760px, 100%);
  }
}

/* Calculator page restore: centered panel, normal logo, centered copy, and image directly under the example paragraph. */
.frame{
  width:100%;
}

.panel{
  margin:0 auto;
}

.page-title--logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  line-height:1;
  text-align:center;
}

.pattern-professor-picture{
  display:flex;
  justify-content:center;
  width:100%;
}

.pattern-professor-logo--calculator{
  width:min(980px, 100%);
  max-width:100%;
}

.pattern-professor-copyright{
  margin:6px 0 16px;
  text-align:center;
}

.copy,
.copy p{
  text-align:center;
}

.copy{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

.copy p{
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
}

.copy p:last-child{
  margin-bottom:10px;
}

.example-panel{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  padding-left:0;
  border-left:none;
  margin:0 auto 22px;
  text-align:center;
}

.example-panel-title{
  display:none;
}

.example-preview{
  width:min(320px, 82vw);
  margin:0 auto;
}

.scale-example-layout{
  display:block;
  width:100%;
  max-width:100%;
  margin:0 auto;
}

.scale-section{
  width:100%;
}

@media (max-width:900px){
  .frame{
    justify-content:center;
    align-items:flex-start;
    padding:12px;
  }

  .panel{
    width:min(100%, 560px);
    max-width:560px;
    margin:0 auto;
    padding:16px 14px 22px;
    grid-template-areas:
      "title"
      "copy"
      "example"
      "scale-example"
      "button";
  }

  .page-title--logo{
    grid-area:title;
    margin:0 0 8px;
  }

  .pattern-professor-logo--calculator{
    width:min(520px, 100%);
  }

  .pattern-professor-copyright{
    margin:4px 0 6px;
    font-size:clamp(8px, 2.8vw, 11px);
    line-height:1.18;
  }

  .copy{
    grid-area:copy;
    max-width:100%;
  }

  .copy p{
    max-width:100%;
    text-align:center;
  }

  .copy strong{
    white-space:normal;
    overflow-wrap:break-word;
  }

  .example-panel{
    grid-area:example;
    margin:0 auto 18px;
  }

  .example-preview{
    width:min(280px, 82vw);
  }

  .scale-example-layout{
    grid-area:scale-example;
  }
}

@media (max-width:480px){
  .frame{
    padding:8px;
  }

  .panel{
    width:min(100%, 430px);
    max-width:430px;
    padding:14px 10px 20px;
  }

  .copy strong{
    white-space:normal;
  }

  .copy p{
    font-size:clamp(10px, 3vw, 12px);
    line-height:1.4;
    letter-spacing:.01em;
  }

  .example-preview{
    width:min(238px, 82vw);
  }
}

.lower{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin:28px auto 0;
}

.lower .cta{
  margin:0 auto;
}

@media (max-width:900px){
  .lower{
    grid-area:button;
    margin-top:18px;
  }
}

/* Keep the calculator copyright tucked under the left edge of the logo art. */
.page-title--logo{
  align-items:center;
}

.pattern-professor-picture{
  width:min(980px, 100%);
}

.pattern-professor-logo--calculator{
  width:100%;
}

.pattern-professor-copyright{
  width:min(980px, 100%);
  margin:-10px auto 16px;
  padding-left:clamp(0px, .45vw, 7px);
  text-align:left;
}

@media (max-width:900px){
  .pattern-professor-picture,
  .pattern-professor-copyright{
    width:min(520px, 100%);
  }

  .pattern-professor-copyright{
    margin:-6px auto 8px;
    padding-left:clamp(0px, 1vw, 5px);
  }
}

@media (max-width:480px){
  .pattern-professor-picture,
  .pattern-professor-copyright{
    width:min(390px, 100%);
  }

  .pattern-professor-copyright{
    margin:-5px auto 7px;
  }
}

/* Shared Pattern Professor header spacing. */
.page-title--logo{
  align-items:center;
}

.pattern-professor-picture,
.pattern-professor-copyright{
  width:min(980px, 100%);
}

.pattern-professor-logo--calculator{
  width:100%;
}

.pattern-professor-copyright{
  margin:-10px auto 14px;
  padding-left:clamp(0px, .45vw, 7px);
  text-align:left;
}

@media (max-width:900px){
  .pattern-professor-picture,
  .pattern-professor-copyright{
    width:min(520px, 100%);
  }

  .pattern-professor-copyright{
    margin:-6px auto 8px;
    padding-left:clamp(0px, 1vw, 5px);
  }
}

@media (max-width:480px){
  .pattern-professor-picture,
  .pattern-professor-copyright{
    width:min(390px, 100%);
  }

  .pattern-professor-copyright{
    margin:-5px auto 7px;
  }
}

/* Condensed Scale rows with readable breathing room. */
.scale-column{
  padding:7px 9px 8px;
}

.scale-column h3{
  margin-bottom:5px;
}

.scale-column dl{
  gap:1px;
}

.scale-column dl div{
  min-height:15px;
  gap:11px;
}

@media (max-width:900px){
  .scale-column{
    padding:7px 8px 8px;
  }

  .scale-column h3{
    margin-bottom:5px;
  }

  .scale-column dl{
    gap:1px;
  }

  .scale-column dl div{
    min-height:16px;
  }
}

/* Slightly more room between the example paragraph and pattern image. */
.copy p:last-child{
  margin-bottom:clamp(18px, 1.8vw, 28px);
}

@media (max-width:900px){
  .copy p:last-child{
    margin-bottom:18px;
  }
}

/* Desktop: restore Scale left + Example image right layout. */
@media (min-width:901px){
  .right{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "copy copy"
      "scale-example example"
      "button button";
    column-gap:34px;
    align-items:start;
  }

  .page-title--logo{
    grid-area:title;
    justify-self:stretch;
    width:100%;
    margin-left:0;
    margin-right:0;
    text-align:left;
  }

  .copy{
    display:contents;
  }

  .copy p{
    max-width:none;
    margin-left:0;
    margin-right:0;
    text-align:left;
  }

  .copy p:nth-child(1){
    grid-column:1 / -1;
    grid-row:2;
  }

  .copy p:nth-child(2){
    grid-column:1 / -1;
    grid-row:3;
  }

  .copy p:nth-child(3){
    grid-column:1;
    grid-row:4;
    margin-bottom:0;
  }

  .copy strong{
    text-align:left;
  }

  .pattern-professor-picture,
  .pattern-professor-copyright{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
  }

  .pattern-professor-logo--calculator{
    width:100%;
  }

  .scale-example-layout{
    grid-column:1;
    grid-row:5;
    justify-self:stretch;
    display:block;
    width:100%;
    max-width:100%;
    margin:clamp(18px, 1.7vw, 28px) 0 0;
  }

  .example-panel{
    grid-column:2;
    grid-row:4 / 6;
    align-self:start;
    justify-self:stretch;
    align-items:flex-start;
    justify-content:center;
    width:100%;
    margin:0;
    padding-top:0;
  }

  .example-preview{
    width:min(520px, 88%);
  }

  .lower{
    grid-column:1 / -1;
    grid-row:6;
  }
}

/* Desktop: trim Scale cards and align image to paragraph body + Scale bottom. */
@media (min-width:901px){
  .scale-grid{
    align-items:start;
  }

  .scale-column{
    align-self:start;
    min-height:0;
    height:auto;
    padding-bottom:7px;
  }

  .example-panel{
    align-self:stretch;
    box-sizing:border-box;
    height:100%;
    padding-top:clamp(38px, 2.85vw, 43px);
  }

  .example-preview{
    width:auto;
    max-width:100%;
    height:100%;
    max-height:none;
    object-fit:contain;
  }
}

/* Desktop: make the image fill from paragraph text top to Scale-card bottom. */
@media (min-width:901px){
  .example-panel{
    --example-body-offset:clamp(38px, 2.85vw, 43px);
    position:relative;
    overflow:visible;
    padding-top:0;
  }

  .example-preview{
    position:absolute;
    top:var(--example-body-offset);
    left:50%;
    width:auto;
    height:calc(100% - var(--example-body-offset));
    max-width:100%;
    transform:translateX(-50%);
    object-fit:contain;
  }
}

/* Pattern Professor calculator subheading. */
.pattern-professor-subheading{
  display:block;
  width:100%;
  max-width:100%;
  margin:0 0 16px;
  color:#fff8dc;
  font-size:clamp(5px, 1.45vw, 21px);
  font-weight:900;
  line-height:1;
  letter-spacing:0;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
}

@media (max-width:900px){
  .panel{
    grid-template-areas:
      "title"
      "subheading"
      "copy"
      "example"
      "scale-example"
      "button";
  }

  .pattern-professor-subheading{
    grid-area:subheading;
    margin:-1px 0 10px;
    font-size:clamp(13px, 3.6vw, 16px);
    line-height:1.1;
    white-space:normal;
  }
}

@media (min-width:901px){
  .right{
    grid-template-areas:
      "title title"
      "subheading subheading"
      "copy copy"
      "scale-example example"
      "button button";
  }

  .pattern-professor-subheading{
    grid-column:1 / -1;
    grid-row:2;
    margin:0 0 20px;
    font-size:clamp(32px, 2.85vw, 41px);
    line-height:1.04;
    text-align:left;
    white-space:normal;
  }

  .copy p:nth-child(1){
    grid-row:3;
  }

  .copy p:nth-child(2){
    grid-row:4;
  }

  .copy p:nth-child(3){
    grid-row:5;
  }

  .scale-example-layout{
    grid-row:6;
  }

  .example-panel{
    grid-row:5 / 7;
  }

  .lower{
    grid-row:7;
  }
}

/* Desktop: nest the copyright directly under the visible logo artwork. */
@media (min-width:901px){
  .page-title--logo .pattern-professor-copyright{
    margin-top:clamp(-42px, calc(7px - 2.5vw), -8px);
    margin-bottom:clamp(22px, 1.9vw, 32px);
  }
}

/* Calculator masthead: keep the wide stacked logo comfortably inside the panel. */
.calculator-page .page-title--logo{
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
  padding-bottom:0;
}

.calculator-page .page-title--logo::after{
  content:"";
  display:block;
  width:100%;
  height:2px;
  margin:15px 0;
  background:var(--gold);
}

.calculator-page .pattern-professor-picture{
  width:99%;
  max-width:100%;
}

.calculator-page .pattern-professor-logo--calculator{
  width:100%;
  max-width:100%;
  height:auto;
}

.copy p.payment-note{
  margin-top:-8px;
}

/* Enlarge the sample pattern and move it closer to the paragraph. */
@media (min-width:901px){
  .example-preview{
    top:calc(var(--example-body-offset) - 96px);
    transform:translateX(-50%) scale(1.55);
    transform-origin:top center;
  }
}

/* Keep the desktop Scale subtitle on one line. */
@media (min-width:901px){
  .scale-subtitle{
    font-size:16px;
    white-space:nowrap;
  }
}
