html.wavegrating-page{--bg:#f5f5f7;--text:#101b14;--ink:var(--text);--muted:#526358;--line:#d0ded3;--accent:#30d158;--accent-ink:#087b3d;--accent-text:#101b14;--panel:#f4f8f3;--research-text:#684761;--research-bg:#fff0ff;--footer:#f0f6ee;--font:'Inter Tight',Arial,sans-serif;--mono:'Chivo Mono',monospace;color-scheme:light}
@media screen{html.wavegrating-page[data-theme=dark]{--bg:#000;--text:#f5f5f7;--muted:#aeaeae;--line:#2d2d2d;--accent-ink:#30d158;--accent-text:#0d0d0d;--panel:#151515;--research-text:#d0aac7;--research-bg:#1c121c;--footer:#171717;color-scheme:dark}}
*{box-sizing:border-box}
html{scroll-padding-top:28px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:18px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
img{display:block;max-width:100%;height:auto}
figure,p,h1,h2,h3{margin:0}
ul,ol{padding-left:1.2em;margin:0}
li+li{margin-top:9px}
button,a{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent-ink);outline-offset:6px}
::selection{background:var(--accent);color:var(--accent-text)}
.frame{width:min(100% - 112px,1280px);margin-inline:auto}
.skip-link{position:absolute;top:-80px;left:16px;background:var(--accent);color:var(--accent-text);padding:12px 20px;z-index:2}
.skip-link:not(:focus){top:0;transform:translateY(calc(-100% - 12px))}
.skip-link:focus{position:fixed;top:8px;z-index:6}
.header-inner{min-height:90px;display:flex;gap:30px;align-items:center}
.brand{display:flex;align-items:center;gap:13px;font-size:21px;font-weight:500;letter-spacing:-.03em;min-height:44px}
.brand-mark{background:var(--accent);color:var(--accent-text);font-size:25px;line-height:1.05;font-weight:700;letter-spacing:-.08em;padding:4px 8px 7px}
.all-work{margin-left:auto;font-size:15px;display:inline-flex;align-items:center;min-height:44px}
.all-work:hover,.footer-bottom a:hover,.notes-body a:hover{color:var(--accent-ink)}
.hero{padding-top:42px}
.hero-topline{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
h1{font-size:clamp(64px,8.1vw,116px);font-weight:500;letter-spacing:-.068em;line-height:1.05}
.hero-subtitle{font-size:clamp(24px,2.6vw,32px);line-height:1.22;letter-spacing:-.035em;max-width:16ch}
.brand-highlight{background:#ffa9fd;color:var(--accent-text);padding:0 .06em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.hero-credit{font-size:15px;line-height:1.6;color:var(--muted);margin-top:32px}
.image-link{display:block;cursor:zoom-in;min-height:44px}
.wide-figure img{width:100%}
figcaption{font-size:15px;line-height:1.5;color:var(--muted);margin-top:15px;max-width:65ch}
.section{margin-top:128px}
h2{font-size:clamp(36px,4vw,56px);font-weight:500;letter-spacing:-.049em;line-height:1.1;max-width:24ch}
h3{font-size:27px;font-weight:500;line-height:1.2;letter-spacing:-.025em}
.section-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;align-items:end;margin-bottom:34px}
.section-intro p{color:var(--muted);max-width:45ch}
.development-study .image-link{background:#fff}
.image-hint{font-size:15px;color:var(--muted);margin-top:12px}
.development-panel{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:center;gap:64px}
.development-image{display:flex;align-items:center;justify-content:center;min-width:0;height:520px;background:#000}
.development-image img{width:100%;height:100%;object-fit:contain}
.development-image-study{background:#fff}
.development-image-pixel img{width:256px;height:256px;max-width:100%;image-rendering:pixelated}
.development-copy{max-width:37ch}
.checkpoint-date{font-family:var(--mono);font-size:13px;color:var(--muted);margin-bottom:16px}
.development-copy h3{font-size:32px;margin-bottom:24px}
.development-copy ul{color:var(--muted);font-size:18px}
.checkpoint-scale{font-size:15px;color:var(--muted);margin-top:24px}
.performance-heading{display:grid;grid-template-columns:.65fr 1fr;gap:70px;align-items:center;max-width:1080px;margin:38px 0}
.performance-number{font-size:clamp(84px,10vw,144px);font-weight:500;letter-spacing:-.07em;line-height:1;color:var(--accent-ink)}
.performance-number>span{font-size:.66em;letter-spacing:-.04em}
.performance-copy{max-width:52ch}
.performance-copy>p:first-child{font-size:22px;line-height:1.4;max-width:36ch}
.benchmark-note{font-size:15px;color:var(--muted);margin-top:18px}
.technical-notes{margin-top:34px}
.notes-body{padding-top:24px;color:var(--muted);font-size:17px}
.notes-body p{max-width:65ch}
.notes-body p+p{margin-top:18px}
.notes-body h3{color:var(--text);margin-bottom:20px}
.notes-body>h3{margin-top:36px}
.notes-body a:not(.image-link){text-decoration:underline;text-underline-offset:4px;display:inline-block;min-height:44px}
.notes-body .wide-figure{margin:30px 0}
.wide-figure>.image-link{background:#fff}
.scope-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:38px}
.status-content{display:grid;grid-template-columns:1fr 1fr;gap:100px;max-width:1080px}
.status-content h3{margin-bottom:20px}
.status-content ul{color:var(--muted);max-width:46ch}
.next-step{max-width:60ch;margin-top:35px;color:var(--muted)}
.optical-notes{margin-top:34px}
.detail-section+.detail-section{margin-top:64px}
.visual-pair{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin:30px 0}
.scientific-square{background:#fff}
.scientific-square img{width:100%}
.research-figure figcaption{font-size:15px}
.research-figure strong{font-weight:500;color:var(--text)}
.workflow{max-width:65ch;margin-bottom:24px}
.formula,.principle-formula{color:var(--text);overflow-wrap:anywhere}
.footer{background:var(--footer);padding:64px 0 22px;margin-top:128px}
.contact-row{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:48px}
.footer h2{font-size:49px;font-weight:500;letter-spacing:-.049em;line-height:1.1}
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;min-height:50px;padding:12px 18px;font-family:var(--mono);font-size:13px}
.primary{background:var(--accent);color:var(--accent-text)}
.primary:hover{filter:brightness(1.1)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:30px;font-size:15px;color:var(--muted)}
.footer-bottom>div{display:flex;gap:32px}
.footer-bottom a{min-height:44px;display:inline-flex;align-items:center}
.image-dialog{border:1px solid var(--line);background:var(--bg);color:var(--text);width:min(1240px,calc(100% - 48px));max-height:92dvh;padding:28px;overflow:auto}
.image-dialog::backdrop{background:#0d0d0de8}
.dialog-header{display:flex;justify-content:space-between;gap:30px;align-items:center;margin-bottom:20px}
.dialog-header h2{font-size:27px;letter-spacing:-.035em}
.dialog-close{background:transparent;border:1px solid var(--line);padding:8px 16px;min-height:44px;font-size:15px;display:flex;gap:22px;align-items:center}
.dialog-close span{font-size:24px}
.dialog-image-wrap{background:#fff;display:flex;justify-content:center}
.dialog-image-wrap img{object-fit:contain;max-height:64dvh;width:auto;max-width:100%}
.dialog-caption{display:flex;gap:40px;justify-content:space-between;font-size:15px;color:var(--muted);margin-top:20px;align-items:center}
.dialog-caption p{max-width:780px}
.dialog-caption a{flex-shrink:0;min-height:44px;display:inline-flex;align-items:center;gap:14px}
.image-dialog:not([open]){display:none}
@media(max-width:1100px){
  .frame{width:calc(100% - 64px)}
  .hero-subtitle{font-size:29px}
  .section-intro{gap:50px}
  .development-panel{gap:40px}
  .development-image{height:460px}
  .development-copy h3{font-size:28px}
  .performance-heading{gap:45px}
  .status-content{gap:60px}
}
@media(max-width:820px){
  .frame{width:calc(100% - 40px)}
  .header-inner{min-height:78px;gap:18px}
  .brand{font-size:17px;gap:10px}
  .brand-mark{font-size:22px}
  .hero{padding-top:30px}
  .hero-topline{align-items:start;flex-direction:column;gap:18px;margin-bottom:26px}
  .hero-copy{display:flex;justify-content:space-between;align-items:end;gap:30px}
  .hero-subtitle{font-size:28px;max-width:27ch}
  .hero-credit{font-size:14px;max-width:190px;flex-shrink:0;margin-top:0}
  .section-intro{grid-template-columns:1fr;gap:22px}
  .section-intro p{max-width:60ch}
  .development-panel{grid-template-columns:1fr;gap:28px}
  .development-copy{max-width:60ch}
  .development-copy h3{font-size:29px;margin-bottom:18px}
  .performance-heading{grid-template-columns:.8fr 1fr;gap:30px}
  .performance-copy>p:first-child{font-size:20px}
  .status-content{gap:40px}
  .scope-heading{align-items:start;flex-direction:column;gap:20px}
  .dialog-caption{gap:22px;align-items:start;flex-direction:column}
}
@media(max-width:600px){
  body{font-size:17px}
  .header-inner{gap:12px;min-height:76px}
  .brand{font-size:16px;gap:9px}
  .brand-mark{font-size:21px;padding:4px 7px 6px}
  .all-work{font-size:14px}
  .theme-button{font-size:11px;padding:0 2px}
  .hero{padding-top:22px}
  h1{font-size:clamp(46px,12.1vw,72px)}
  .hero-topline{gap:17px;margin-bottom:24px}
  .hero-copy{display:block}
  .hero-subtitle{font-size:23px;max-width:29ch;line-height:1.3}
  .hero-credit{font-size:14px;max-width:none;margin-top:18px}
  figcaption{font-size:15px;margin-top:13px}
  .section{margin-top:80px}
  h2{font-size:38px}
  h3{font-size:25px}
  .section-intro{gap:22px;margin-bottom:26px}
  .image-hint{font-size:15px;margin-top:10px}
  .development-image{height:clamp(290px,100vw,460px)}
  .development-copy h3{font-size:28px}
  .development-copy ul{font-size:17px}
  .checkpoint-date{margin-bottom:12px}
  .performance-heading{grid-template-columns:1fr;gap:24px;margin:30px 0}
  .performance-number{font-size:100px}
  .performance-copy>p:first-child{font-size:22px}
  .benchmark-note{font-size:15px}
  .notes-body{font-size:17px;padding-top:18px}
  .notes-body .wide-figure{margin:24px 0}
  .status-content{grid-template-columns:1fr;gap:36px}
  .status-content h3{margin-bottom:16px}
  .scope-heading{margin-bottom:32px}
  .next-step{margin-top:30px}
  .detail-section+.detail-section{margin-top:44px}
  .visual-pair{grid-template-columns:1fr;gap:30px}
  .footer{padding-top:44px;margin-top:80px}
  .contact-row{align-items:start;flex-direction:column;gap:28px;margin-bottom:35px}
  .footer h2{font-size:39px}
  .footer-bottom{flex-direction:column;align-items:start;gap:12px}
  .footer-bottom>div{gap:28px}
  .image-dialog{padding:18px;width:calc(100% - 24px)}
  .dialog-header{gap:12px;align-items:start}
  .dialog-header h2{font-size:23px}
  .dialog-close{padding:8px 10px;font-size:14px;gap:10px}
  .dialog-image-wrap img{max-height:58dvh}
}
@media(max-width:360px){
  .brand>span:last-child{max-width:81px;line-height:1.15}
  .header-inner{gap:10px}
  .theme-button{font-size:10px}
}
@media(prefers-reduced-motion:no-preference){a,button{transition:color .16s,background-color .16s,filter .16s}html{scroll-behavior:smooth}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* The approved WaveGrating layout uses the site fonts and palette. */
html.wavegrating-page{scroll-padding-top:1.5rem}
.wavegrating-page body{font-size:1.125rem;line-height:1.55}
/* The frame, header, and logo match the home page and the other case pages. */
.wavegrating-page .frame{width:min(calc(100% - 6rem),1200px)}
.wavegrating-page :is(h1,.formula,.principle-formula,.notes-body a:not(.image-link),.dialog-caption a){overflow-wrap:anywhere}
.wavegrating-page :is(h2,h3,button){overflow-wrap:break-word}
.wavegrating-page :is(.hero-copy,.development-copy,.performance-copy,.status-content>div){min-width:0}
.wavegrating-page :is(a,button):focus-visible{outline-width:2px;outline-offset:5px}
.wavegrating-page .header-inner{min-height:4rem;gap:1.5rem;flex-wrap:wrap;padding-block:.375rem;border-bottom:1px solid var(--line)}
.wavegrating-page .brand{font-size:1.0625rem;font-weight:600;gap:.625rem;min-height:44px;min-width:0}
.wavegrating-page .brand-mark{font-size:1.5rem;line-height:1.15;padding:.25rem .5rem .4375rem;flex-shrink:0}
.wavegrating-page .brand>span:last-child{max-width:none;line-height:1.2}
.wavegrating-page .all-work{font-size:.9375rem}
.wavegrating-page .site-header{position:sticky;top:0;z-index:5;background:var(--bg)}
.wavegrating-page .header-inner{position:relative}
.wavegrating-page .wg-contents summary{display:flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer;font-size:.9375rem;list-style:none}
.wg-contents summary::-webkit-details-marker{display:none}
.wg-contents summary::after{content:"";width:.43em;height:.43em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.wg-contents[open] summary::after{transform:rotate(225deg)}
.wg-chapter-links{position:absolute;inset-inline-end:0;top:100%;width:min(34rem,100%);padding:.75rem 1.25rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.25rem;max-height:70dvh;overflow:auto;overscroll-behavior:contain;background:var(--bg);border:1px solid var(--line)}
.wg-chapter-links a,.wg-sources a{display:inline-flex;align-items:center;min-height:44px}
.wg-chapter-links a:hover,.wg-contents summary:hover{color:var(--accent-ink)}
.wavegrating-page :is(section,#top,[id^=checkpoint-],#cube-studio,.wg-subhead,#card-surface){scroll-margin-top:5.5rem}
.wavegrating-page .hero{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(2rem,6vw,5rem);padding-top:clamp(2rem,4vw,4rem);text-align:start}
.wavegrating-page .hero-topline{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin-bottom:.875rem}
.wavegrating-page h1{font-size:5rem;font-weight:600;letter-spacing:-.04em;line-height:1.05}
.wavegrating-page .hero-copy{display:block;width:100%}
.wavegrating-page .hero-subtitle{font-size:1.75rem;line-height:1.25;max-width:27ch;margin:1.25rem 0;letter-spacing:-.025em}
.wavegrating-page .hero-figure{width:min(100%,46rem)}
.wavegrating-page .hero-figure video{display:block;width:100%;height:auto;max-height:36rem;object-fit:contain;background:#000}
.wavegrating-page figcaption{font-size:.9375rem;line-height:1.5;margin-top:.75rem;max-width:65ch}
.wavegrating-page .hero-figure figcaption{max-width:none;margin-inline:auto}
.wavegrating-page .hero-credit{font-size:.875rem;line-height:1.5;max-width:none;margin:.75rem 0 0;color:var(--muted)}
.wavegrating-page .section{margin-top:7rem}
.wg-source a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent-ink);text-decoration:underline;text-underline-offset:.2em}
.wg-chapter{margin-top:clamp(4.5rem,8vw,8rem);scroll-margin-top:2rem}
.wg-chapter-head,.wg-laminate{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:clamp(1.5rem,5vw,4rem)}
.wg-dateline{font-size:.875rem;color:var(--muted);margin-bottom:.625rem}
.wg-intro,.wg-laminate p{max-width:56ch;margin-top:1rem}
.wg-diagram img{width:100%;height:auto;max-height:17rem;object-fit:contain}
.wg-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:2rem;align-items:start}
.wg-gallery figure{min-width:0}
.wg-gallery .image-link,.wg-result-head .image-link{display:grid;place-items:center}
.wg-gallery .image-link img{width:100%;height:auto;max-height:28rem;object-fit:contain}
.wg-gallery #checkpoint-color img,.wg-edge figure:not(:first-child) img{image-rendering:pixelated}
.wg-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.wg-poses .image-link img{height:clamp(19rem,35vw,32rem)}
.wg-edge{grid-template-columns:1.4fr 1fr 1fr;align-items:center}
.wg-edge figure:not(:first-child) img{height:auto}
.wg-registration-example{grid-template-columns:minmax(0,1fr);max-width:48rem;margin-inline:auto}
.wg-registration-example .image-link img{height:auto}
.wg-note,.wg-laminate{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.wg-note{max-width:76ch}
.wg-source{margin-top:1rem;color:var(--muted);font-size:.875rem}
.wg-sources{margin-top:.75rem;color:var(--muted);font-size:.875rem}
.wg-sources p,.wg-measurements p{max-width:68ch}
.wg-sources a,.wg-measurements a{text-decoration:underline;text-underline-offset:.15em}
.wg-evidence-links{padding:0;list-style:none;margin:.5rem 0 0}
.wg-evidence-links li+li{margin:0}
.wg-evidence-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent-ink)}
.wg-records h3{margin-top:3rem}
.wg-records .image-link img{height:12rem}
.wg-cube-stages .image-link img,.wg-camera-checks .image-link img{height:auto}
.wg-camera-checks figure:first-child{grid-column:1/-1;max-width:52rem;width:100%;margin-inline:auto}
.wg-camera-checks figure:nth-child(2) img{max-height:18rem}
.wg-benchmark-check{margin-top:2rem}
.wg-concept-pair{gap:clamp(1.5rem,4vw,3rem)}
.wg-concept-pair figure{display:flex;flex-direction:column}
.wg-concept-pair img{width:100%;height:auto;margin-top:1rem}
.wg-concept-pair figcaption{font-size:1rem}
.wg-subhead{margin-top:2.5rem}
.wg-micrographs .image-link img,.wg-foil-science .image-link img,.wg-cube-stages .image-link img{height:auto}
.wg-foil-science figure:first-child{grid-column:1/-1;width:min(100%,54rem);margin:auto}
#morpho .wg-diagram img{max-height:28rem}
@media(max-width:45rem){
  .wg-chapter-links{font-size:1rem}
  .wg-chapter-head,.wg-laminate,.wg-gallery,.wg-three,.wg-edge{grid-template-columns:minmax(0,1fr)}
  .wg-diagram img{max-height:16rem}
  .wg-gallery .image-link img{height:auto;max-height:30rem}
  .wg-gallery #checkpoint-color img{height:15rem}
  .wg-gallery{gap:1.75rem}
  .wg-edge,.wg-poses{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.75rem}
  .wg-edge figure:first-child{grid-column:1/-1}
}
.wavegrating-page h2{font-size:2.75rem;font-weight:600;line-height:1.12;letter-spacing:-.04em;max-width:26ch}
.wavegrating-page h3{font-size:1.625rem;font-weight:500;line-height:1.22;letter-spacing:-.025em}
.wavegrating-page .section-intro{display:block;max-width:42rem;text-align:center;margin:0 auto 2rem}
.wavegrating-page .section-intro h2{margin-inline:auto}
.wavegrating-page .section-intro p{max-width:54ch;margin:1rem auto 0;color:var(--muted)}
.wavegrating-page .development-study figcaption,.wavegrating-page .image-hint{text-align:center;max-width:none}
.wavegrating-page .image-hint{font-size:.9375rem;margin-top:.5rem}
.wavegrating-page .development-section>h2{margin-inline:auto;text-align:center}
.wavegrating-page .development-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3.5rem 2.5rem;margin-top:2rem}
.wavegrating-page .development-panel{display:flex;flex-direction:column;align-items:stretch;gap:1.5rem;min-width:0}
.wavegrating-page .development-image{height:28rem;width:100%;min-width:0}
.wavegrating-page .development-image img{object-fit:contain}
.wavegrating-page .development-image-pixel img{width:256px;height:256px;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.wavegrating-page .development-copy{max-width:none}
.wavegrating-page .checkpoint-date{font-size:.8125rem;margin-bottom:.75rem}
.wavegrating-page .development-copy h3{font-size:1.75rem;margin-bottom:1rem}
.wavegrating-page .development-copy ul{font-size:1.125rem}
.wavegrating-page li+li{margin-top:.625rem}
.wavegrating-page .checkpoint-scale{font-size:.9375rem;margin-top:1.25rem}
.wavegrating-page .performance-section{background:var(--panel);padding:3.5rem}
.wavegrating-page .performance-section>h2{max-width:none}
.wavegrating-page .performance-heading{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:3rem;margin:2rem 0;max-width:none;align-items:center}
.wavegrating-page .performance-number{font-size:6rem;line-height:1;font-weight:500;letter-spacing:-.04em;white-space:nowrap;overflow-wrap:normal}
.wavegrating-page .performance-copy{max-width:46ch}
.wavegrating-page .performance-copy>p:first-child{font-size:1.375rem;line-height:1.4;max-width:36ch}
.wavegrating-page .benchmark-note{font-size:.9375rem;line-height:1.5;margin-top:1rem}
.wavegrating-page .technical-notes{margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--line)}
.wavegrating-page .technical-notes>h3{color:var(--text)}
.wavegrating-page .notes-body{padding-top:1.25rem;font-size:1.0625rem}
.wavegrating-page .notes-body p{max-width:65ch}
.wavegrating-page .notes-body p+p{margin-top:1rem}
.wavegrating-page .notes-body h3{margin-bottom:1.25rem}
.wavegrating-page .notes-body>h3{margin-top:2rem}
.wavegrating-page .notes-body .wide-figure{margin:1.75rem 0}
.wavegrating-page .scope-heading{align-items:center;margin-bottom:2.5rem;gap:1.5rem}
.wavegrating-page .status-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:4rem;max-width:none}
.wavegrating-page .status-content h3{margin-bottom:1rem}
.wavegrating-page .status-content ul{max-width:43ch}
.wavegrating-page .next-step{max-width:60ch;margin-top:2rem}
.wavegrating-page .detail-section+.detail-section{margin-top:3.5rem}
.wavegrating-page .visual-pair{gap:2rem;margin:1.75rem 0}
.wavegrating-page .research-figure figcaption{font-size:.9375rem}
.wavegrating-page .workflow{margin-bottom:1.5rem}
.wavegrating-page .footer{margin-top:7rem;padding:3.5rem 0 1.25rem}
.wavegrating-page .contact-row{gap:2rem;margin-bottom:3rem}
.wavegrating-page .footer h2{font-size:2.75rem;line-height:1.12;letter-spacing:-.04em}
.wavegrating-page .button{font-size:.8125rem;gap:2rem;padding:.75rem 1.125rem;min-height:44px}
.wavegrating-page .footer-bottom{font-size:.9375rem;gap:1.5rem;flex-wrap:wrap}
.wavegrating-page .footer-bottom>div{gap:2rem;flex-wrap:wrap}
.wavegrating-page .image-dialog{width:min(77.5rem,calc(100% - 1.5rem));padding:1.5rem}
.wavegrating-page .dialog-header{gap:1.5rem;margin-bottom:1.25rem;align-items:start}
.wavegrating-page .dialog-header h2{font-size:1.6875rem}
.wavegrating-page .dialog-close{font-size:.9375rem;gap:1.25rem;padding:.5rem 1rem;flex-shrink:0;min-height:44px}
.wavegrating-page .dialog-close span{font-size:1.5rem}
.wavegrating-page .dialog-caption{font-size:.9375rem;gap:1.5rem;align-items:start;margin-top:1.25rem;flex-wrap:wrap}
.wavegrating-page .dialog-caption p{max-width:48rem;min-width:0}
.wavegrating-page .dialog-caption a{flex-shrink:1;gap:.75rem}
@media(max-width:60rem){
  .wavegrating-page .development-panel{gap:1.5rem}
  .wavegrating-page .development-copy{width:100%}
  .wavegrating-page .development-image{height:26rem}
  .wavegrating-page .performance-section{padding:2.5rem}
  .wavegrating-page .performance-heading{gap:2rem;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
  .wavegrating-page .performance-number{font-size:5.25rem}
  .wavegrating-page .status-content{gap:2.5rem}
}
@media(max-width:767px){
  .wavegrating-page .frame{width:calc(100% - 2rem)}
}
@media(max-width:45rem){
  .wavegrating-page .header-inner{gap:.5rem 1rem}
  .wavegrating-page .hero{padding-top:2rem}
  .wavegrating-page h1{font-size:3.25rem}
  .wavegrating-page .hero-subtitle{font-size:1.5rem;max-width:28ch}
  .wavegrating-page .section{margin-top:5rem}
  .wavegrating-page h2{font-size:2.125rem}
  .wavegrating-page .development-panels{grid-template-columns:1fr;gap:3.5rem}
  .wavegrating-page .development-image{height:24rem}
  .wavegrating-page .development-copy h3{font-size:1.75rem}
  .wavegrating-page .performance-section{padding:min(2rem,32px) min(1.5rem,24px)}
  .wavegrating-page .performance-heading{grid-template-columns:1fr;gap:1.5rem}
  .wavegrating-page .performance-number{font-size:min(5.25rem,26vw)}
  .wavegrating-page .performance-copy>p:first-child{font-size:1.25rem}
  .wavegrating-page .scope-heading{flex-direction:column;align-items:start;margin-bottom:2rem}
  .wavegrating-page .status-content{grid-template-columns:1fr;gap:2.5rem}
  .wavegrating-page .visual-pair{grid-template-columns:1fr}
  .wavegrating-page .footer{margin-top:5rem;padding-top:2.5rem}
  .wavegrating-page .footer h2{font-size:2.125rem}
  .wavegrating-page .contact-row{flex-direction:column;align-items:start;gap:1.75rem;margin-bottom:2.25rem}
  .wavegrating-page .footer-bottom{flex-direction:column;align-items:start;gap:.75rem}
  .wavegrating-page .footer-bottom>div{gap:1.5rem}
  .wavegrating-page .image-dialog{padding:1rem}
  .wavegrating-page .dialog-header{gap:.75rem;flex-wrap:wrap}
  .wavegrating-page .dialog-header h2{font-size:1.4375rem}
  .wavegrating-page .dialog-close{padding:.5rem .625rem;gap:.625rem}
}
@media(max-width:25rem){
  .wavegrating-page .header-inner{column-gap:.75rem}
  .wavegrating-page .brand{font-size:1rem;gap:.5rem}
  .wavegrating-page .all-work{font-size:.875rem}
  .wavegrating-page h1{font-size:2.875rem}
  .wavegrating-page .development-image{height:20rem}
  .wavegrating-page .performance-section{padding:min(1.75rem,28px) min(1.25rem,20px)}
}

/* The shared theme script controls this button and its accessible name. */
.wavegrating-page .nav-controls{display:flex;align-items:center}
.wavegrating-page .theme-toggle{display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;background:none;color:var(--text);cursor:pointer}
.wavegrating-page .theme-toggle>span{display:grid;font-size:17px}
.wavegrating-page .theme-toggle:hover{color:var(--accent-ink)}
.wavegrating-page .ui-icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Keep page navigation consistent while figures stay visible during scrolling. */
@media screen and (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .wavegrating-page #case-title{view-transition-name:wavegrating-title}
  .wavegrating-page .site-header{view-transition-name:site-header}
  ::view-transition-group(*){animation-duration:.45s;animation-timing-function:cubic-bezier(.16,1,.3,1)}
}
@media print{.wavegrating-page .nav-controls,.wavegrating-page .image-dialog{display:none}}

/* Lead with each material, then keep its close-ups beside their explanation. */
.wavegrating-page .wg-result-head{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.wg-result-head .image-link img{width:100%;height:auto;max-height:26rem;object-fit:contain}
.wg-result-detail{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:center}
.wg-bubble-steps{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
#morpho .wg-micrographs .wg-diagram img{max-height:17rem}
.wg-cube-stages{grid-template-columns:repeat(4,minmax(0,1fr))}
.wg-gallery.wg-film-frames{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;max-width:58rem;margin-inline:auto;background:#000;color:#eee}
.wg-film-frames .image-link img{width:100%;max-height:35rem;background:#000}
.wavegrating-page .wg-film-frames figcaption{margin:0;padding:.4rem .5rem .8rem;color:#ddd;text-align:center}
.wg-motion-method{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1rem 2rem;margin:1.5rem auto}
.wg-motion-method .wg-diagram{width:min(17rem,100%)}
.wg-motion-method p{max-width:25ch}
.wavegrating-page .wg-chapter:first-of-type{border-top:1px solid var(--line);padding-top:clamp(2rem,4vw,3.5rem)}
@media(max-width:58rem){
  .wavegrating-page .hero{grid-template-columns:1fr;max-width:46rem;gap:1.5rem}
  .wavegrating-page .hero-copy{max-width:36rem}
  .wg-cube-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:45rem){
  .wavegrating-page .wg-result-head,.wg-result-detail{grid-template-columns:1fr}
  .wg-bubble-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wg-bubble-steps .wg-diagram{grid-column:1/-1}
  .wg-cube-stages{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.75rem}
  .wg-motion-method{justify-content:flex-start}
}
@media(max-width:27rem){.wavegrating-page .brand>span:not(.brand-mark){position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}}
@media print{.wavegrating-page .site-header{position:static}.wg-contents{display:none}}
