/*
Theme Name: Soothing Digital
Theme URI: https://soothingdigital.com/
Author: Stephen Cahill
Description: Portfolio theme for Soothing Digital. Calm editorial layout with a work index and case studies.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.3.2
License: GNU General Public License v2 or later
Text Domain: soothing-digital
*/

/* Soothing Digital: Direction A (calm editorial). Mist ground, ink text, one calm blue accent. */
body{background:#F2F4F3;color:#15202B;font-family:"Hanken Grotesk",system-ui,sans-serif;font-size:17px;line-height:1.6}
a{color:#17699B}
a:hover{color:#0F4E75}
:focus-visible{outline:2px solid #17699B;outline-offset:3px}
.wp-site-blocks{padding-top:0}
.sd-section{padding-inline:clamp(20px,5vw,72px)}
.sd-wrap{max-width:1240px;margin-inline:auto;width:100%}
.sd-wrap.sd-wrap>*,.sd-row.sd-row>*,.sd-stack.sd-stack>*,.sd-section.sd-section>*{margin-block:0}
.sd-row{display:flex;flex-wrap:wrap;gap:32px}
.sd-stack{display:flex;flex-direction:column;gap:20px}
.sd-display,.sd-h2,.sd-h3,.sd-title,.sd-quote{font-family:"Bricolage Grotesque",system-ui,sans-serif;color:#15202B;text-wrap:balance}
.sd-display{font-weight:600;font-size:clamp(48px,7.6vw,112px);line-height:.95;letter-spacing:-.04em}
.sd-display em,.sd-h2 em{font-style:normal;color:#17699B}
.sd-h2{font-weight:600;font-size:clamp(28px,3vw,40px);line-height:1.05;letter-spacing:-.03em}
.sd-h3{font-weight:500;font-size:22px;line-height:1.2;letter-spacing:-.01em}
.sd-eyebrow,.sd-meta{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#56626D}
.sd-lede{font-size:clamp(18px,1.4vw,20px);line-height:1.6;color:#36424D;max-width:52ch}
.sd-body{color:#36424D;max-width:60ch}
.sd-muted{color:#56626D}

/* Buttons */
.sd-btn .wp-block-button__link{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:999px;background:#15202B;color:#F2F4F3;font-family:"Hanken Grotesk",system-ui,sans-serif;font-weight:600;font-size:15px;text-decoration:none}
.sd-btn .wp-block-button__link:hover{background:#17699B;color:#fff}
.sd-btn .wp-block-button__link::after{content:"→";font-size:16px}
.sd-link .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:0 4px;border-radius:0;background:none;color:#15202B;font-weight:600;font-size:15px;border-bottom:1px solid #15202B;text-decoration:none}
.sd-link .wp-block-button__link:hover{color:#17699B;border-color:#17699B}
.sd-chip .wp-block-button__link{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #C9D1D6;background:transparent;color:#15202B;font-size:15px;font-weight:500;text-decoration:none}
.sd-chip .wp-block-button__link:hover,.sd-chip.is-current .wp-block-button__link{background:#15202B;border-color:#15202B;color:#F2F4F3}
.wp-block-buttons.sd-buttons{gap:16px 24px;align-items:center}

/* Header and footer */
.sd-header .sd-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:28px}
.sd-brand{display:flex;flex-direction:column;gap:2px}
.sd-brand.sd-brand>*{margin:0}
.sd-brand-name{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:22px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
.sd-brand-name a{color:#15202B;text-decoration:none}
.sd-brand-sub{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#56626D;line-height:1.4}
.sd-header-right{display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.sd-header-right.sd-header-right>*{margin:0}
.sd-nav{gap:28px;font-size:15px;font-weight:500}
.sd-nav a{color:#15202B;text-decoration:none;padding-block:12px}
.sd-nav a:hover,.sd-nav .current-menu-item>a{color:#17699B}
.sd-footer .sd-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-block:28px 40px;font-size:14px;color:#56626D;border-top:1px solid #D5DBDF}
.sd-footer p{margin:0}
.sd-footer-links{display:flex;flex-wrap:wrap;gap:24px}
.sd-footer-links a{color:#56626D;text-decoration:none}
.sd-footer-links a:hover{color:#17699B}

/* Hero with crop marks */
.sd-hero .sd-wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-end;padding-block:clamp(48px,8vw,112px) clamp(56px,8vw,96px)}
.sd-hero-title{flex:999 1 640px;min-width:0;position:relative;padding:28px 32px;display:flex;flex-direction:column;gap:24px}
.sd-hero-title.sd-hero-title>*{margin:0}
.sd-hero-title::before,.sd-hero-title::after{content:"";position:absolute;width:18px;height:18px;border:0 solid #9AA6AF}
.sd-hero-title::before{top:0;left:0;border-top-width:1px;border-left-width:1px}
.sd-hero-title::after{bottom:0;right:0;border-bottom-width:1px;border-right-width:1px}
.sd-hero-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:28px;padding-bottom:28px}
.sd-hero-side.sd-hero-side>*{margin:0}

/* Stats */
.sd-stats{display:flex;flex-wrap:wrap;gap:40px;padding-bottom:clamp(72px,9vw,128px)}
.sd-stat{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:14px;border-top:1px solid #C9D1D6;padding-top:21px}
.sd-stat:first-child{border-top:2px solid #17699B;padding-top:20px}
.sd-stat.sd-stat>*{margin:0}
.sd-stat-num{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:600;font-size:clamp(56px,6vw,88px);line-height:.9;letter-spacing:-.04em;color:#15202B}

/* Section headings */
.sd-sechead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;border-top:1px solid #D5DBDF;padding-top:20px;margin-bottom:48px}
.sd-sechead.sd-sechead>*{margin:0}
.sd-space{padding-top:clamp(80px,10vw,144px)}

/* Work grid on the homepage */
.sd-grid{display:flex;flex-wrap:wrap;gap:48px 32px}
.sd-card{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sd-card.sd-wide{flex:2 1 560px}
.sd-card.sd-card>*{margin:0}
.sd-card-cap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.sd-card-cap.sd-card-cap>*{margin:0}
.sd-card-cap .sd-meta{padding-top:6px;letter-spacing:.08em}
.sd-frame{overflow:hidden;background:#E8E8E8;border-radius:2px;margin:0}
.sd-frame img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sd-frame.is-mat img{transform:scale(1.42)}
.sd-frame.is-deep img{transform:scale(1.62)}
.sd-card:hover .sd-frame img{transform:scale(1.04)}
.sd-card:hover .sd-frame.is-mat img{transform:scale(1.5)}
.sd-card:hover .sd-frame.is-deep img{transform:scale(1.7)}
.sd-h-lg{height:clamp(240px,34vw,480px)}
.sd-h-md{height:clamp(220px,24vw,340px)}
.sd-h-tall{height:clamp(240px,30vw,420px)}
.sd-card a{color:inherit;text-decoration:none}
.sd-card:hover .sd-h3 a{color:#17699B}

/* Services */
.sd-split{display:flex;flex-wrap:wrap;gap:48px}
.sd-split>.sd-split-side{flex:1 1 280px;min-width:0}
.sd-split>.sd-split-main{flex:2 1 560px;min-width:0}
.sd-split-side.sd-split-side>*,.sd-split-main.sd-split-main>*{margin-block:0}
.sd-split-side{display:flex;flex-direction:column;gap:16px}
.sd-split-main{display:flex;flex-direction:column;gap:20px}
.sd-services{display:flex;flex-direction:column;gap:0!important}
.sd-service{display:flex;flex-wrap:wrap;gap:8px 32px;padding-block:24px;border-top:1px solid #D5DBDF}
.sd-service:last-child{border-bottom:1px solid #D5DBDF}
.sd-service.sd-service>*{margin:0}
.sd-service .sd-h3{flex:1 1 220px}
.sd-service p{flex:2 1 320px;color:#36424D}

/* Clients */
.sd-clients{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:400;font-size:clamp(26px,3.4vw,44px);line-height:1.3;letter-spacing:-.015em;color:#15202B;text-wrap:balance}

/* Testimonials */
.sd-quotes{display:flex;flex-wrap:wrap;gap:32px}
.sd-quotes .wp-block-quote{flex:1 1 420px;min-width:0;margin:0;padding:40px;background:#fff;border:0;border-radius:4px;display:flex;flex-direction:column;gap:24px}
.sd-quotes .wp-block-quote p{margin:0;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:24px;line-height:1.4;letter-spacing:-.01em;color:#15202B;font-style:normal}
.sd-quotes .wp-block-quote cite{font-size:15px;color:#56626D;font-style:normal}
.sd-quotes .wp-block-quote cite strong{color:#15202B}

/* About strip */
.sd-about{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.sd-about.sd-about>*{margin:0}
.sd-avatar{flex:0 0 auto;width:160px;height:160px;border-radius:50%;overflow:hidden;background:#DCE8EE}
.sd-avatar img{width:100%;height:100%;object-fit:cover}
.sd-about-text{flex:1 1 420px;min-width:0;max-width:680px;display:flex;flex-direction:column;gap:16px}
.sd-about-text.sd-about-text>*{margin:0}

/* Contact band */
.sd-cta .sd-wrap{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-end;justify-content:space-between;padding-block:clamp(96px,12vw,168px) clamp(64px,8vw,112px)}
.sd-cta .sd-wrap>*{margin:0}
.sd-cta .sd-display{flex:1 1 560px;min-width:0;font-size:clamp(40px,5.6vw,80px);line-height:1}
.sd-cta-side{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.sd-cta-side.sd-cta-side>*{margin:0}

/* Work index (Work page, category archives) */
.sd-pagehead{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;justify-content:space-between;padding-block:clamp(48px,7vw,96px) clamp(40px,5vw,64px)}
.sd-pagehead.sd-pagehead>*{margin:0}
.sd-pagehead .sd-display{flex:1 1 480px;min-width:0;font-size:clamp(56px,9vw,128px);line-height:.9;letter-spacing:-.045em}
.sd-pagehead .sd-lede{flex:1 1 340px;min-width:0}
.sd-chips{gap:10px}
.sd-index{list-style:none;margin:32px 0 0;padding:0;border-bottom:1px solid #D5DBDF}
.sd-index>li{margin:0!important}
.sd-index-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;padding-block:24px;border-top:1px solid #D5DBDF}
.sd-index-row.sd-index-row>*{margin:0}
.sd-index-row .wp-block-post-featured-image{flex:0 0 auto;width:240px;max-width:100%;height:150px;overflow:hidden;background:#E8E8E8;border-radius:2px}
.sd-index-row .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sd-index-row:hover .wp-block-post-featured-image img{transform:scale(1.05)}
.sd-index-text{flex:3 1 300px;min-width:0;display:flex;flex-direction:column;gap:6px}
.sd-index-text.sd-index-text>*{margin:0}
.sd-index-row .wp-block-post-title{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:clamp(24px,2.4vw,32px);font-weight:500;line-height:1.1;letter-spacing:-.02em}
.sd-index-row .wp-block-post-title a{color:#15202B;text-decoration:none}
.sd-index-row:hover .wp-block-post-title a{color:#17699B}
.sd-index-row .wp-block-post-excerpt{font-size:15px;color:#56626D}
.sd-index-row .wp-block-post-excerpt p{margin:0}
.sd-index-row .wp-block-post-excerpt__more-text{display:none}
.sd-index-row .wp-block-post-terms{flex:1 1 160px;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.sd-index-row .wp-block-post-terms a{color:#56626D;text-decoration:none}

/* Case study (single project) */
.sd-back .wp-block-button__link{background:none;color:#15202B;padding:0;min-height:44px;font-weight:600;font-size:15px;text-decoration:none}
.sd-back .wp-block-button__link::before{content:"← "}
.sd-case-head{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-end;justify-content:space-between}
.sd-case-head.sd-case-head>*{margin:0}
.sd-case-title{flex:2 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.sd-case-title.sd-case-title>*{margin:0}
.sd-case-title .wp-block-post-title{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:600;font-size:clamp(44px,7vw,100px);line-height:.95;letter-spacing:-.045em}
.sd-case-title .wp-block-post-excerpt{font-size:20px;line-height:1.55;color:#36424D;max-width:52ch}
.sd-case-title .wp-block-post-excerpt p{margin:0}
.sd-case-title .wp-block-post-excerpt__more-text{display:none}
.sd-case-hero .wp-block-post-featured-image{margin:clamp(40px,5vw,64px) 0 0;height:clamp(260px,46vw,680px);overflow:hidden;border-radius:2px;background:#E8E8E8}
.sd-case-hero .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.sd-case-body{padding-bottom:clamp(72px,9vw,128px)}
.sd-case-body>.wp-block-post-content>*{margin-block:0}
.sd-case-body>.wp-block-post-content>*+*{margin-top:clamp(72px,9vw,128px)}
.sd-case-body .wp-block-image{margin:0}
.sd-case-body .wp-block-image img{width:100%;border-radius:2px}
.sd-gallery{display:flex;flex-wrap:wrap;gap:24px}
.sd-gallery.sd-gallery>*{flex:1 1 420px;min-width:0;margin:0}
.sd-next{border-top:1px solid #D5DBDF;padding-top:24px}

@media (prefers-reduced-motion:reduce){.sd-frame img,.sd-index-row .wp-block-post-featured-image img{transition:none}}

/* Additions */
.wp-site-blocks>*{margin-block:0}
.sd-chip .wp-block-button__link{display:inline-flex;align-items:center}
.sd-footer .sd-wrap>*{margin:0}
.sd-split.sd-split>*{margin-block:0}
.sd-split-main.sd-services{gap:0}
.sd-clients em{font-style:normal;color:#17699B}
.sd-quotes.sd-quotes>*{margin:0}
.sd-frame a{display:block;height:100%}
.sd-case-head{padding-top:clamp(24px,4vw,48px)}
.sd-case-title .wp-block-post-terms{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.sd-case-title .wp-block-post-terms a{color:#56626D;text-decoration:none}
.sd-case-body{padding-block:clamp(72px,9vw,128px)}
.sd-case-body .wp-block-post-content>*+*{margin-top:clamp(72px,9vw,128px)}
.sd-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;border-top:1px solid #D5DBDF;padding-top:20px;max-width:560px}
.sd-facts.sd-facts>*{margin:0}
.sd-facts p{margin:0;font-size:15px;font-weight:500}
.sd-facts strong{display:block;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#56626D;margin-bottom:4px}
.sd-page .wp-block-post-content{max-width:760px}
.sd-page .wp-block-post-content>*{margin-block:0 1em}
.sd-index-row .wp-block-post-featured-image a{display:block;height:100%}
.sd-header .wp-block-navigation__responsive-container.is-menu-open{background:#F2F4F3;color:#15202B;padding:24px}

/* Phone header: brand and menu on one row */
@media (max-width:600px){.sd-header .sd-buttons{display:none}.sd-header .sd-wrap{flex-wrap:nowrap}}

/* About page */
.sd-about-hero{display:flex;flex-wrap:wrap;gap:40px;align-items:center}
.sd-about-hero.sd-about-hero>*{margin:0}
.sd-about-hero .sd-avatar{width:200px;height:200px}
.sd-about-hero .sd-lede{flex:1 1 420px;min-width:0;max-width:60ch}
.sd-list{list-style:none;margin:0;padding:0;border-top:1px solid #D5DBDF}
.sd-list li{padding:12px 0;border-bottom:1px solid #D5DBDF;color:#36424D}
.sd-cols{display:flex;flex-wrap:wrap;gap:48px}
.sd-cols.sd-cols>*{flex:1 1 300px;min-width:0;margin:0;display:flex;flex-direction:column;gap:16px}
.sd-cols.sd-cols>*>*{margin:0}
.sd-page .wp-block-post-content>.sd-split,.sd-page .wp-block-post-content>.sd-cols,.sd-page .wp-block-post-content>.sd-about-hero{max-width:1240px}
.sd-page .wp-block-post-content>*+*{margin-top:clamp(56px,7vw,96px)}
.sd-page .wp-block-post-content>*{margin-bottom:0}
.sd-page{padding-bottom:clamp(72px,9vw,128px)}

/* Contact form (WPForms) */
.sd-page .wpforms-container{max-width:640px;margin:0}
.sd-page .wpforms-container .wpforms-field-label{font-family:"Hanken Grotesk",system-ui,sans-serif;font-size:15px;font-weight:600;color:#15202B}
.sd-page .wpforms-container input[type=text],.sd-page .wpforms-container input[type=email],.sd-page .wpforms-container select,.sd-page .wpforms-container textarea{background:#fff;border:1px solid #C9D1D6;border-radius:8px;min-height:48px;padding:10px 14px;font:inherit;color:#15202B;max-width:100%}
.sd-page .wpforms-container input:focus,.sd-page .wpforms-container select:focus,.sd-page .wpforms-container textarea:focus{border-color:#17699B;outline:2px solid #17699B;outline-offset:1px}
.sd-page .wpforms-container button[type=submit]{min-height:48px;padding:0 26px;border-radius:999px;background:#15202B;color:#F2F4F3;border:0;font-weight:600;font-size:15px;cursor:pointer}
.sd-page .wpforms-container button[type=submit]:hover{background:#17699B}
.sd-contact-note{display:flex;flex-direction:column;gap:8px}
.sd-contact-note.sd-contact-note>*{margin:0}

/* Homepage polish */
.sd-hero .sd-display{font-size:clamp(44px,6.2vw,92px)}
.sd-frame.is-mat.sd-h-lg img,.sd-card:hover .sd-frame.is-mat.sd-h-lg img{object-fit:contain;transform:none}

/* Work page: category sections + lightbox (1.1.0) */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.sd-work-nav{margin-bottom:clamp(24px,4vw,48px)}
.sd-work-section{padding-block:clamp(40px,6vw,72px);border-top:1px solid #D5DBDF;scroll-margin-top:16px}
.sd-work-section.sd-work-section>*{margin-block:0}
.sd-work-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:clamp(24px,3vw,36px)!important}
.sd-work-head.sd-work-head>*{margin:0}
.sd-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:36px 24px}
.sd-tiles.sd-tiles>*{margin:0}
.sd-tile{display:flex;flex-direction:column;gap:12px;min-width:0}
.sd-tile a{display:block;position:relative;aspect-ratio:16/10;overflow:hidden;background:#E8E8E8;border-radius:2px;cursor:zoom-in}
.sd-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sd-tile.is-mat img{transform:scale(1.42)}
.sd-tile a:hover img,.sd-tile a:focus-visible img{transform:scale(1.04)}
.sd-tile.is-mat a:hover img,.sd-tile.is-mat a:focus-visible img{transform:scale(1.5)}
.sd-tile a:focus-visible{outline:2px solid #17699B;outline-offset:3px}
.sd-tile figcaption{margin:0;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:18px;font-weight:500;line-height:1.25;letter-spacing:-.01em;color:#15202B;text-wrap:balance}
.sd-tile figcaption strong{font-weight:inherit}
.sd-tile figcaption span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sd-tile.is-video a{cursor:pointer}
.sd-tile.is-video a::after{content:"";position:absolute;inset:50% auto auto 50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(21,32,43,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23F2F4F3'/%3E%3C/svg%3E") center/28px no-repeat;transition:background-color .2s}
.sd-tile.is-video a:hover::after{background-color:#17699B}

.sd-lb-on{overflow:hidden}
.sd-lb{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:0;background:#101820;color:#F2F4F3;display:none;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
.sd-lb[open]{display:grid}
.sd-lb::backdrop{background:#101820}
.sd-lb-bar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.sd-lb-count{margin:0;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#A9B4BD}
.sd-lb button{font:inherit;color:inherit;background:transparent;border:1px solid rgba(242,244,243,.28);border-radius:999px;cursor:pointer;transition:background-color .2s,border-color .2s}
.sd-lb button:hover,.sd-lb button:focus-visible{background:#F2F4F3;border-color:#F2F4F3;color:#101820}
.sd-lb button:focus-visible{outline:2px solid #6FB3DC;outline-offset:2px}
.sd-lb-close{min-height:44px;padding:0 18px;font-size:15px;display:inline-flex;align-items:center;gap:8px}
.sd-lb-close span{font-size:20px;line-height:1}
.sd-lb-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(8px,2vw,24px);min-height:0}
.sd-lb-nav{width:52px;height:52px;font-size:20px;display:grid;place-items:center}
.sd-lb-nav[hidden]{display:none!important}
.sd-lb-media{grid-column:2;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.sd-lb-media img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:2px;user-select:none}
.sd-lb-media.is-video iframe{width:100%;max-height:100%;aspect-ratio:16/9;border:0;border-radius:2px;background:#000}
.sd-lb-cap{max-width:68ch;margin-inline:auto;text-align:center}
.sd-lb-title{margin:0 0 6px;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:clamp(20px,2.2vw,28px);font-weight:500;line-height:1.15;letter-spacing:-.02em;color:#F2F4F3;text-wrap:balance}
.sd-lb-brief{margin:0;font-size:16px;line-height:1.55;color:#C4CDD4}
@media (max-width:700px){
  .sd-lb-stage{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto}
  .sd-lb-media{grid-column:1/-1;grid-row:1}
  .sd-lb-prev,.sd-lb-next{grid-row:2;width:48px;height:48px}
  .sd-lb-prev{grid-column:1;justify-self:start}
  .sd-lb-next{grid-column:2;justify-self:end}
}
@media (prefers-reduced-motion:reduce){.sd-tile img{transition:none}}

/* Original logo in the header (1.1.4) */
.sd-header .sd-logo{margin:0;flex:0 0 auto}
.sd-header .sd-logo a{display:block;line-height:0}
.sd-header .sd-logo img{display:block;width:216px;max-width:100%;height:auto}
@media (max-width:600px){.sd-header .sd-logo img{width:176px}}

/* Books page and homepage books band (1.2.0) */
.sd-books{padding-bottom:clamp(72px,9vw,128px)}
.sd-book{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(32px,5vw,72px);padding-block:clamp(40px,6vw,80px);border-top:1px solid #D5DBDF;scroll-margin-top:16px}
.sd-book.sd-book>*{margin:0}
.sd-book:nth-of-type(even){flex-direction:row-reverse}
.sd-book-cover{flex:1 1 440px;min-width:0;margin:0;display:flex;align-items:center;justify-content:center;padding:clamp(28px,5vw,64px);border-radius:4px;background:#E6EBEE}
.sd-book-cover img{display:block;width:auto;max-width:100%;height:clamp(300px,44vw,560px);object-fit:contain}
.is-warm{--book-tint:#EFE5D8}
.is-green{--book-tint:#E2ECDD}
.sd-book-cover.is-warm,.sd-book-cover.is-green{background:var(--book-tint)}
.sd-book-text{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sd-book-text.sd-book-text>*{margin:0}
.sd-book-text .sd-h2{font-size:clamp(36px,4.4vw,60px);line-height:.98;letter-spacing:-.035em}
.sd-book-sub{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:clamp(19px,1.6vw,22px);font-weight:500;line-height:1.3;letter-spacing:-.01em;color:#17699B;text-wrap:balance;margin-top:-4px!important}
.sd-book-text .sd-buttons{margin-top:8px!important}
.sd-book-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px;border-top:1px solid #D5DBDF;padding-top:clamp(32px,4vw,48px)}
.sd-book-note.sd-book-note>*{margin:0}
.sd-books-band{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(32px,5vw,64px);border-top:1px solid #D5DBDF;padding-top:clamp(32px,4vw,48px)}
.sd-books-band.sd-books-band>*{margin:0}
.sd-books-band-text{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sd-books-band-text.sd-books-band-text>*{margin:0}
.sd-books-band-covers{flex:2 1 520px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.4vw,24px)}
.sd-books-band-covers.sd-books-band-covers>*{margin:0}
.sd-book-tile{display:flex;flex-direction:column;gap:12px}
.sd-book-tile a{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;padding:12% 14%;overflow:hidden;border-radius:4px;background:var(--book-tint,#E6EBEE)}
.sd-book-tile img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .6s ease}
.sd-book-tile a:hover img,.sd-book-tile a:focus-visible img{transform:scale(1.04)}
.sd-book-tile figcaption{margin:0;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:18px;font-weight:500;line-height:1.25;color:#15202B}
@media (prefers-reduced-motion:reduce){.sd-book-tile img{transition:none}}

/* Book promo video (click to play) */
.sd-video{flex:1 1 100%;min-width:0;margin:0;display:flex;flex-direction:column;gap:12px}
.sd-video a,.sd-video iframe{display:block;position:relative;width:100%;aspect-ratio:16/9;border:0;border-radius:4px;overflow:hidden;background:#101820}
.sd-video img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sd-video a:hover img,.sd-video a:focus-visible img{transform:scale(1.02)}
.sd-video a::after{content:"";position:absolute;inset:50% auto auto 50%;width:80px;height:80px;margin:-40px 0 0 -40px;border-radius:50%;background:rgba(21,32,43,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23F2F4F3'/%3E%3C/svg%3E") center/36px no-repeat;transition:background-color .2s}
.sd-video a:hover::after,.sd-video a:focus-visible::after{background-color:#17699B}
.sd-video a:focus-visible{outline:2px solid #17699B;outline-offset:3px}
.sd-video figcaption{margin:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px;text-align:left}
.sd-video figcaption strong{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:18px;font-weight:500;color:#15202B}
.sd-video figcaption span{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#56626D;padding-top:4px}
@media (prefers-reduced-motion:reduce){.sd-video img{transition:none}}

/* Work tiles that aren't 16:10: whole image over a blurred copy */
.sd-tile.is-fit a{background-size:cover;background-position:center}
.sd-tile.is-fit a::before{content:"";position:absolute;inset:-30px;background:inherit;filter:blur(18px) saturate(.9);opacity:.9}
.sd-tile.is-fit img{position:relative;object-fit:contain}

/* Book status labels (1.2.2) */
.sd-book-status{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#fff;color:#15202B;letter-spacing:.12em}
.sd-book-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#2E8B57}
.sd-book-status.is-soon::before{background:#D9822B}
.sd-book-tile figcaption span{display:block;margin-top:4px;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#56626D}
