
/* COREDRIVE V2 QA3 — only layout / usability corrections. No change to data schemas. */
/* CONTACT: correct dark-logo/menu on light hero; keep the overlay transparent. */
body.cd17.page-contact .site-header:not(.is-dark),
body.cd17.page-contact .site-header:not(.is-dark) .primary-nav a:not(.nav-contact){color:#2b2221!important}
body.cd17.page-contact .site-header:not(.is-dark) .wordmark .logo-white{display:none!important}
body.cd17.page-contact .site-header:not(.is-dark) .wordmark .logo-black{display:block!important;visibility:visible!important}
body.cd17 .primary-nav>.nav-group .nav-dropdown a{color:#2b2221!important}

/* ESTIMATE: remove cramped sticky right column. Details are full-width BELOW the sticky live total. */
body.cd17 .cd17-estimate-inner{width:min(100%,1300px);max-width:1300px;margin-inline:auto}
body.cd17 .estimate-calculator{display:flex!important;flex-direction:column;align-items:stretch;gap:0;width:100%;max-width:100%;min-width:0}
body.cd17 .estimate-calculator>.estimate-service-selector,
body.cd17 .estimate-calculator>.estimate-service-panels,
body.cd17 .estimate-calculator>.estimate-calculate-wrap,
body.cd17 .estimate-calculator>.estimate-result{grid-column:auto!important;grid-row:auto!important;width:100%;max-width:100%;min-width:0}
body.cd17 .estimate-service-panel{width:100%;max-width:none}
body.cd17 .estimate-calculate-wrap{position:sticky;bottom:0;z-index:35;box-shadow:0 -6px 26px #0003;margin-top:20px}
body.cd17 .estimate-calculate-wrap .estimate-calculate-button{white-space:nowrap;color:#2b2221;background:#f43832}
body.cd17 .estimate-result{position:static!important;max-height:none!important;overflow:visible!important;margin:0 0 55px!important;padding:clamp(24px,4vw,60px)!important;background:#2b2221!important;color:#fff9f0!important;scroll-margin-top:110px}
body.cd17 .estimate-result[hidden]{display:none!important}
body.cd17 .estimate-result-head h2{font-size:clamp(28px,4vw,55px)!important;line-height:1.16;color:#fff9f0!important;overflow-wrap:normal}
body.cd17 .estimate-result-row span{color:#f5ebe2!important;font-size:clamp(13px,1.3vw,17px);line-height:1.55}
body.cd17 .estimate-result-row strong{color:#fff9f0!important;font-size:clamp(13px,1.3vw,17px)}
body.cd17 .estimate-result-group h3,body.cd17 .estimate-result-total strong{color:#ff554d!important}
body.cd17 .estimate-result-head span,body.cd17 .estimate-result-note,body.cd17 .estimate-copy-status{color:#e6d7ce!important}
body.cd17 .estimate-result-text{width:100%;color:#fff9f0;background:#3a302e;border:1px solid #fff8;padding:14px;box-sizing:border-box}
body.cd17 .estimate-service-panel .estimate-field-note,body.cd17 .estimate-service-panel legend,
body.cd17 .estimate-panel-head h2,body.cd17 .estimate-number-control>span{color:#fff9f0!important}
body.cd17 .estimate-option-box,body.cd17 .estimate-service-choice>span{color:#2b2221!important}
body.cd17 .estimate-option input:checked+.estimate-option-box,
body.cd17 .estimate-service-choice input:checked+span{color:#2b2221!important;background:#f43832!important}
body.cd17 .estimate-option-copy small{color:#544c47!important}
body.cd17 .estimate-service-panel .estimate-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Landscape, portrait or odd aspect ratio photo previews: optically centered within a wide frame. */
body.cd17 .cd17-work-thumb,body.cd17 .web-art--project{background:#e0d8ce;isolation:isolate}
body.cd17 .cd17-work-thumb img.is-landscape,body.cd17 .web-art--project img.is-landscape{object-fit:contain!important;object-position:center!important}
body.cd17 .cd17-single-cover img.is-landscape{object-fit:contain!important;object-position:center!important;background:#e0d8ce}
body.cd17 .cd17-work-thumb img:not(.is-landscape),body.cd17 .web-art--project img:not(.is-landscape){object-fit:cover;object-position:center top}
body.cd17 .cd17-single-cover{background:#e0d8ce}
body.cd17 .cd17-single-cover img{height:100%;width:100%}
/* PHOTO: a high-contrast editorial changeover instead of two consecutive dark blocks. */
body.cd17 .photo-bottom-frame{background:#f5f0e8!important;color:#2b2221!important;isolation:isolate}
body.cd17 .photo-bottom-copy{background:#f5f0e8!important;color:#2b2221!important}
body.cd17 .photo-bottom-copy h2,body.cd17 .photo-bottom-copy small,body.cd17 .photo-bottom-copy a{color:#2b2221!important}
body.cd17 .photo-bottom-copy a{border-color:#2b2221!important}
body.cd17 .photo-bottom-copy h2{font-size:clamp(46px,7.3vw,132px);line-height:.97;overflow-wrap:normal}
/* BLOG: natural title line wrapping, no forced short width. */
body.cd17 .cd17-article-head h1{display:block;max-width:none!important;width:100%!important;font-size:clamp(31px,4.3vw,62px)!important;letter-spacing:-.045em;line-height:1.38;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none}
body.cd17 .cd17-article-head>p{max-width:1000px;line-height:1.85}
body.cd17 .blog-cover small{display:none!important}
body.cd17 .blog-cover h1{display:inline-block;max-width:none;width:auto;white-space:nowrap;font-size:clamp(85px,18vw,255px);letter-spacing:-.085em}
body.cd17 .cd17-blog-archive .section-topline{margin-bottom:0}
body.cd17 .v2-blog-categories{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:26px 0 34px;border-bottom:1px solid #2b222143;margin-bottom:30px}
body.cd17 .v2-blog-categories a{display:inline-flex;padding:12px 19px;background:transparent;color:#2b2221;border:1px solid #2b2221;font-size:clamp(12px,1.1vw,15px);font-weight:900;text-decoration:none;line-height:1.2;transition:background .2s,color .2s}
body.cd17 .v2-blog-categories a[aria-current=page],body.cd17 .v2-blog-categories a:hover{background:#f43832;border-color:#f43832;color:#2b2221}
body.cd17 .v2-article-category{display:inline-block;background:#f43832;color:#2b2221!important;padding:6px 12px;font-weight:900;letter-spacing:.04em;border-radius:0}
body.cd17 .cd17-post-row h2{overflow-wrap:break-word;word-break:normal;line-height:1.35}
@media(max-width:860px){
 body.cd17 .estimate-calculator>.estimate-service-selector{grid-template-columns:1fr 1fr}
 body.cd17 .photo-bottom-copy h2{font-size:clamp(39px,10vw,78px)}
}
@media(max-width:640px){
 body.cd17 .estimate-service-panel .estimate-options{grid-template-columns:1fr!important}
 body.cd17 .estimate-calculator>.estimate-service-selector{grid-template-columns:1fr}
 body.cd17 .estimate-calculate-wrap{bottom:0;gap:8px}
 body.cd17 .estimate-live-summary strong{font-size:clamp(16px,4.3vw,24px);white-space:normal}
 body.cd17 .estimate-calculate-button{padding:11px!important;font-size:12px!important}
 body.cd17 .cd17-article-head h1{font-size:clamp(29px,7.5vw,47px)!important}
 body.cd17 .blog-cover h1{font-size:clamp(75px,23vw,145px)}
}
/* Balanced article headlines without a forced narrow title column or orphaned last glyph. */
body.cd17 .cd17-article-head h1{font-size:clamp(29px,3.65vw,53px)!important;text-wrap:balance}
@media(max-width:640px){body.cd17 .cd17-article-head h1{font-size:clamp(27px,7.1vw,38px)!important}}


/* COREDRIVE V2 / QA4. Only front-end presentation. No schema or pricing changes. */
:root{--qa4-paper:#f5f0e8;--qa4-ink:#2b2221;--qa4-red:#f43832;--qa4-tag:#ae271d;--qa4-white:#fffaf3}
/* The fixed header must be legible on the light Work and Photography archive openings. */
body.cd17 .site-header .nav-contact{color:var(--qa4-white)!important}
/* Unify pagination across all three content archives. */
body.cd17 .v2-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:28px 0 0;margin:55px 0 0;border-top:1px solid #2b22214a;color:var(--qa4-ink)}
body.cd17 .v2-pagination-items{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.cd17 .v2-pagination-items :is(a,span.page-numbers){display:inline-flex;min-width:49px;height:49px;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--qa4-ink);font:800 15px/1 sans-serif;text-decoration:none;background:var(--qa4-paper);color:var(--qa4-ink);transition:background-color .25s,color .25s}
body.cd17 .v2-pagination-items :is(a.prev,a.next){min-width:94px}
body.cd17 .v2-pagination-items :is(a:hover,a:focus-visible,.page-numbers.current){background:var(--qa4-ink);color:var(--qa4-white);outline-offset:3px}
body.cd17 .v2-pagination-items .dots{border-color:transparent;background:transparent}
body.cd17 .v2-pagination-count{white-space:nowrap;font-size:12px;font-weight:800;letter-spacing:.12em}
/* The work archive hero should not float its title and subtitle far apart. */
body.cd17 .archive-cover{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(12px,2vw,28px);min-height:clamp(450px,66svh,780px);padding:clamp(120px,11vw,175px) 5% clamp(45px,5vw,85px)}
body.cd17 .archive-cover h1{max-width:100%;margin:0;line-height:.96}
body.cd17 .archive-cover p{position:static!important;margin:0;font-weight:800;font-size:clamp(18px,2vw,29px)}
/* Every square work card has the same footprint, regardless of tall source screenshots. */
body.cd17 .cd17-cards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
body.cd17 .cd17-card{min-width:0;width:100%}
body.cd17 .cd17-card-photo{width:100%;aspect-ratio:1 / 1;height:auto;min-height:0;max-height:none;overflow:hidden}
body.cd17 .cd17-card-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center top}
/* Assigned taxonomies/categories only: multi-chip layout, all visible, no generic labels. */
body.cd17 .v2-term-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px}
body.cd17 .v2-term-badge,body.cd17 .v2-article-category{display:inline-flex;align-items:center;justify-content:center;background:var(--qa4-tag)!important;color:var(--qa4-white)!important;border:0;padding:6px 11px;min-height:27px;font-size:11px;line-height:1.35;font-weight:800;letter-spacing:.02em;text-decoration:none;overflow-wrap:anywhere}
body.cd17 .cd17-card-meta h3{margin-top:10px}
/* Blog: title sits on the same optical axis as the other page heroes. */
body.cd17 .blog-cover{min-height:clamp(480px,70svh,800px);padding:clamp(130px,12vw,190px) 5% clamp(65px,8vw,115px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:clamp(65px,8vw,120px)}
body.cd17 .blog-cover h1{font-size:clamp(78px,17vw,238px)!important;max-width:100%;margin:0;line-height:.91}
body.cd17 .blog-cover>p{margin:0;line-height:1.45}
/* SEO snippet sits under the title without ever forcing a separate narrow column. */
body.cd17 .cd17-article-head .v2-article-seo-description{max-width:1100px;color:#4d403c;line-height:1.85;font-size:clamp(15px,1.45vw,19px)}
/* The long two-line technology statement is optically continuous, not wrapped at arbitrary short widths. */
body.cd17 .build-story-display{font-size:clamp(70px,12.4vw,240px)!important;max-width:none}
body.cd17 .build-story-display>span:last-child{margin-left:0!important}
body.cd17 .web-tools .v2-web-tools-copy{width:100%;max-width:none!important;line-height:1.65;margin:clamp(38px,5vw,76px) 0}
body.cd17 .web-tools .v2-web-tools-copy span{display:block;width:100%;max-width:none;white-space:normal;word-break:normal;overflow-wrap:normal}
/* CONTACT: explicit required badge appears inline with label, never on its own line. */
body.cd17 .cd17-form>label .v2-field-label{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
body.cd17 .cd17-form .v2-required{display:inline-block;background:var(--qa4-ink);color:var(--qa4-white);padding:3px 8px;font-size:10px;line-height:1.3;font-weight:900}
/* The calculator's already-visible summary sits naturally below the controls. */
body.cd17 .estimate-result[data-estimate-result]:not([hidden]){display:block!important;position:static!important;max-height:none!important;overflow:visible!important;scroll-margin-top:110px;padding-bottom:clamp(30px,5vw,65px)!important}
body.cd17 .estimate-calculate-wrap{position:sticky;bottom:0;z-index:32}
@media(max-width:980px){body.cd17 .cd17-cards{grid-template-columns:repeat(2,minmax(0,1fr))}body.cd17 .web-tools .v2-web-tools-copy{font-size:clamp(16px,2.5vw,22px)}}
@media(max-width:680px){body.cd17 .cd17-cards{grid-template-columns:1fr}body.cd17 .v2-pagination-items :is(a,span.page-numbers){min-width:40px;height:43px;padding:0 10px;font-size:12px}body.cd17 .v2-pagination-items :is(a.prev,a.next){min-width:69px}body.cd17 .v2-pagination{margin-top:30px}body.cd17 .blog-cover{gap:45px;min-height:480px}body.cd17 .blog-cover h1{font-size:clamp(72px,22vw,130px)!important}body.cd17 .web-tools .v2-web-tools-copy span{white-space:normal}}

/* The header follows measured backgrounds, not an unconditional archive/photography override. */
body.cd17 .site-header:not(.is-dark) .primary-nav>a:not(.nav-contact),body.cd17 .site-header:not(.is-dark) .primary-nav>.nav-group>a{color:var(--qa4-ink)!important}
body.cd17 .site-header:not(.is-dark) .wordmark .logo-white{display:none!important}
body.cd17 .site-header:not(.is-dark) .wordmark .logo-black{display:block!important;visibility:visible!important}
body.cd17 .site-header.is-dark .wordmark .logo-black{visibility:hidden!important}
body.cd17 .site-header.is-dark .wordmark .logo-white{display:block!important}
body.cd17 .site-header.is-dark .primary-nav>a:not(.nav-contact),body.cd17 .site-header.is-dark .primary-nav>.nav-group>a{color:var(--qa4-white)!important}
body.cd17 .build-story-display{width:100%;line-height:.91;letter-spacing:-.088em}
body.cd17 .build-story-display>span{display:block;white-space:nowrap;max-width:100%}
body.cd17 .web-tools .v2-web-tools-copy{font-size:clamp(17px,2vw,28px);letter-spacing:-.03em}

body.cd17 .estimate-result[data-estimate-result][hidden]{display:none!important}


/* COREDRIVE v2 QA5: requested navigation, lists and layout precision */
:root{--qa5-hot:#f43832;--qa5-cream:#f5f0e8;--qa5-ink:#2b2221;--qa5-white:#fffaf3}
/* Dropdown starts directly below navigation; no red top rule. */
body.cd17 .nav-dropdown{border-top:0!important}
/* Chevron rotates in place, without moving its alignment relative to the text. */
body.cd17 .primary-nav .nav-group>a{display:inline-flex;align-items:center;gap:8px;line-height:1.2}
body.cd17 .primary-nav .nav-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 12px;width:12px;height:12px;line-height:0;vertical-align:middle;transform-origin:center center;transform:rotate(0);transition:transform .27s ease;position:relative;top:0;margin:0}
body.cd17 .primary-nav .nav-chevron svg{width:12px;height:12px;display:block}
body.cd17 .nav-group:hover .nav-chevron,body.cd17 .nav-group:focus-within .nav-chevron{transform:rotate(180deg)}
/* Unified active filter and all real assigned taxonomy/category badges. */
body.cd17 .cd17-filters a[aria-current="page"],body.cd17 .v2-blog-categories a[aria-current="page"],
body.cd17 .cd17-filters a:hover,body.cd17 .v2-blog-categories a:hover{background:var(--qa5-hot)!important;border-color:var(--qa5-hot)!important;color:var(--qa5-white)!important}
body.cd17 :is(.v2-term-badge,.v2-article-category){background:var(--qa5-hot)!important;color:var(--qa5-white)!important;border:0!important}
/* Delete redundant archive section hairlines/eyebrows; keep cards, pagination and usable filters. */
body.cd17 .cd17-blog-archive .v2-blog-categories{border-bottom:0!important;margin-bottom:0;padding-top:clamp(22px,3vw,45px);padding-bottom:clamp(18px,2vw,30px)}
body.cd17 .cd17-blog-archive .cd17-post-list{border-bottom:0!important}
body.cd17 .cd17-blog-archive .cd17-post-row:last-child{border-bottom:1px solid #2b22214d}
body.cd17 .cd17-blog-archive .v2-pagination{border-top:0!important;margin-top:15px;padding-top:clamp(22px,2vw,32px)}
body.cd17 .cd17-archive>.section-topline{display:none!important}
body.cd17 .cd17-archive>.cd17-filters:first-child{margin-top:0}
/* Work thumbnails: preserve image full width; crop only the LENGTH of a long screenshot.
   Do not object-fit:cover and cut the left/right edges of wide images. */
body.cd17 .cd17-cards:not(.cd17-cards-photo) .cd17-card-photo{aspect-ratio:1/1;overflow:hidden;background:#ddd6cf;position:relative}
body.cd17 .cd17-cards:not(.cd17-cards-photo) .cd17-card-photo img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:initial!important;object-position:initial!important;transform:none!important;transition:filter .3s ease}
body.cd17 .cd17-cards:not(.cd17-cards-photo) .cd17-card:hover .cd17-card-photo img{transform:none!important}
/* Photo cards retain their photography framing, unchanged. */
/* Align the two archive main visuals in identical positions, without changing SERVICE. */
body.cd17 .archive-cover,body.cd17 .gallery-cover{min-height:clamp(490px,75svh,920px)!important;padding:clamp(120px,10vw,165px) 5% clamp(60px,6vw,110px)!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(15px,2vw,27px)}
body.cd17 .archive-cover h1,body.cd17 .gallery-cover h1{position:static!important;margin:0!important;max-width:100%;line-height:.96!important}
body.cd17 .archive-cover p,body.cd17 .gallery-cover p{position:static!important;margin:0!important;font-size:clamp(18px,2vw,28px);font-weight:800}
/* Home editorial sections: clear category, clear direct case navigation, clear archive navigation. */
body.cd17 .project .project-number--category{font:900 clamp(12px,1.2vw,18px)/1.4 var(--text),Arial,sans-serif;letter-spacing:.09em}
body.cd17 .project-info .project-name small{display:none!important}
body.cd17 .project-info .project-focus{display:block;min-width:0;margin:0;align-self:stretch}
body.cd17 .project-info .project-focus p{font-size:clamp(16px,1.65vw,25px);font-weight:850;line-height:1.45;overflow-wrap:normal;word-break:normal;max-width:100%}
body.cd17 .project-info .project-focus-link{display:inline-flex;align-items:center;font-size:clamp(12px,1vw,15px);font-weight:900;line-height:1.4;border-bottom:1px solid currentColor;padding:12px 0;margin-top:clamp(9px,1vw,20px);width:max-content;max-width:100%}
body.cd17 .project-info>a.project-archive-link{margin-top:clamp(20px,2vw,35px);font-weight:850}
/* WEB/PHOTO service-selected sections no decorative foreign headings/lines. */
body.cd17 .web-selected>.section-topline,body.cd17 .cd17-web-works>.section-topline,body.cd17 .cd17-photo-teaser>.section-topline{display:none!important}
body.cd17 .cd17-photo-teaser-grid{margin-top:clamp(15px,2vw,28px)}
body.cd17 .cd17-web-works{padding-top:clamp(15px,2vw,28px)}
/* ABOUT scroll hint can be used as a real anchor. */
body.cd17 #about-philosophy{scroll-margin-top:90px}
body.cd17 .about-cover-sub>span:first-child{font-size:clamp(13px,1.15vw,18px);letter-spacing:.06em;line-height:1.4}
body.cd17 .about-scroll-link{font-size:clamp(11px,1vw,15px);font-weight:900;display:inline-flex;align-items:center;line-height:1.4;gap:8px;padding:6px 0;border-bottom:1px solid currentColor}
/* Two large HOW WE / BUILD lines; typography without arbitrary narrow max-width. */
body.cd17 .build-story-display{width:100%;max-width:none;line-height:1;letter-spacing:-.065em}
body.cd17 .build-story-display>span{display:block!important;white-space:nowrap!important;width:max-content;max-width:100%}
/* No unintentional small-width breaks in WEB technology statement. */
body.cd17 .web-tools .v2-web-tools-copy{max-width:none!important;width:100%!important;display:block}
body.cd17 .web-tools .v2-web-tools-copy span{display:block;width:100%!important;max-width:100%!important;letter-spacing:-.018em;word-break:normal;overflow-wrap:normal;text-wrap:pretty}
@media(min-width:1050px){body.cd17 .web-tools .v2-web-tools-copy span{white-space:nowrap!important;font-size:clamp(16px,1.7vw,25px)}}
@media(max-width:750px){body.cd17 .project-info{gap:18px}body.cd17 .project-info .project-focus{margin:10px 0}body.cd17 .web-tools .v2-web-tools-copy span{white-space:normal!important}body.cd17 .archive-cover,body.cd17 .gallery-cover{min-height:clamp(430px,70svh,650px)!important;padding:100px 5% 55px!important}}

/* Same optical top baseline for PROJECTS and PHOTO GRAPHY title blocks */
body.cd17 .archive-cover,body.cd17 .gallery-cover{justify-content:flex-start!important;padding-top:clamp(150px,17svh,230px)!important}
body.cd17 .archive-cover h1,body.cd17 .gallery-cover h1{flex:0 0 auto}
@media(max-width:750px){body.cd17 .archive-cover,body.cd17 .gallery-cover{padding-top:125px!important}}


/* QA6 — page-specific typography, motion and choices. Preserve CMS data/UI structure. */
:root{--v2-qa6-paper:#f5f0e8;--v2-qa6-ink:#2b2221;--v2-qa6-red:#f43832;--v2-qa6-white:#fff9f0}
/* About — named representative, lettering without redundant photo annotation */
body.cd17 .profile-name-roman{display:block;color:var(--v2-qa6-white);font:800 11px/1.5 var(--text);letter-spacing:.19em;margin:0 0 8px}
body.cd17 .profile-content h3{margin-top:0}
body.cd17 .profile-col-a>p{font-size:clamp(12px,1.05vw,16px);letter-spacing:.065em}
body.cd17 .about-editorial h2{max-width:1050px;text-wrap:pretty}
body.cd17 .about-core h2{max-width:1250px;font-size:clamp(34px,5.8vw,94px);line-height:1.4;word-break:normal;overflow-wrap:normal}
/* Web is deliberately smaller and unaccompanied by a mocked site screen. */
body.cd17 .web-cover{min-height:clamp(590px,90svh,1050px);height:auto;padding:clamp(115px,10vw,175px) 5% clamp(35px,5vw,80px);gap:20px}
body.cd17 .web-cover h1{font-size:clamp(115px,22vw,360px);max-width:100%;letter-spacing:-.09em;line-height:.93}
body.cd17 .web-cover .web-art{display:none!important}
body.cd17 .web-cover-bottom{margin-top:auto;justify-content:flex-end;text-align:right;width:100%}
body.cd17 .web-cover-bottom p{max-width:none;text-align:right;line-height:1.27;font-size:clamp(22px,3.4vw,52px);text-wrap:balance}
/* Photo tagline lower right; keep its original photographic hero. */
body.cd17 .photo-cover{position:relative}
body.cd17 .photo-cover-sub{left:auto!important;right:5%!important;bottom:clamp(30px,5vw,75px)!important;text-align:right!important;max-width:min(70vw,790px)!important;margin:0!important}
/* PROJECTS / PHOTOGRAPHY: distinct automatic, full-scene sequential entrances, triggered at intersection. */
body.cd17 .archive-cover,body.cd17 .gallery-cover{overflow:hidden;isolation:isolate}
body.cd17 .archive-cover h1,body.cd17 .gallery-cover h1{transform-origin:left center;will-change:transform,clip-path}
@keyframes qa6CoverSweep{0%{background-position:100% center}100%{background-position:0 center}}
@keyframes qa6ArchiveTitle{0%{opacity:0;transform:translate3d(-7vw, .15em,0) scale(1.13);clip-path:inset(0 100% 0 0)}62%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:1;transform:none;clip-path:inset(0 0 0 0)}}
@keyframes qa6ArchiveSubtitle{0%{opacity:0;transform:translate3d(0,36px,0)}100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
 html.motion-enabled body.cd17 .archive-cover.choreo:not(.is-played) h1,
 html.motion-enabled body.cd17 .gallery-cover.choreo:not(.is-played) h1{opacity:0!important;clip-path:inset(0 100% 0 0)!important}
 html.motion-enabled body.cd17 .archive-cover.choreo:not(.is-played)>p,
 html.motion-enabled body.cd17 .gallery-cover.choreo:not(.is-played)>p{opacity:0!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played h1,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played h1{animation:qa6ArchiveTitle 1.12s cubic-bezier(.16,1,.3,1) .12s both!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>p,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>p{animation:qa6ArchiveSubtitle .76s cubic-bezier(.16,1,.3,1) .85s both!important}
}
/* Blog title and subtitle are static at all times. */
body.cd17 .blog-cover--static h1,body.cd17 .blog-cover--static>p{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
body.cd17 .blog-cover--static{isolation:isolate}
/* CONTACT: no redundant English headings; form is main interaction. */
body.cd17 .cd17-contact>.section-topline,body.cd17 .cd17-contact>h2{display:none!important}
body.cd17 .cd17-contact{padding-top:clamp(60px,6vw,115px)!important}
body.cd17 .v2-privacy-consent{margin-top:clamp(20px,3vw,35px);font-size:clamp(13px,1vw,16px)}
body.cd17 .v2-privacy-consent label{display:inline-flex;align-items:center;gap:14px;cursor:pointer;max-width:100%;line-height:1.7}
body.cd17 .v2-privacy-consent input[type=checkbox]{appearance:none;flex:0 0 25px;width:25px;height:25px;background:#fff9f0;border:2px solid var(--v2-qa6-ink);margin:0;display:grid;place-items:center;cursor:pointer}
body.cd17 .v2-privacy-consent input[type=checkbox]:checked{background:var(--v2-qa6-red);border-color:var(--v2-qa6-ink)}
body.cd17 .v2-privacy-consent input[type=checkbox]:checked:after{content:"✓";color:var(--v2-qa6-ink);font-size:20px;font-weight:900}
body.cd17 .v2-privacy-consent input[type=checkbox]:focus-visible{outline:3px solid #F43832;outline-offset:3px}
body.cd17 .v2-privacy-consent a{text-decoration:underline;text-underline-offset:3px}
body.cd17 .v2-privacy-consent b{font-size:10px;background:#2b2221;color:#fff9f0;padding:3px 8px;margin-left:6px}
@media(max-width:760px){
 body.cd17 .web-cover{min-height:clamp(600px,85svh,800px);padding:105px 5% 35px}
 body.cd17 .web-cover h1{font-size:clamp(100px,29vw,210px)}
 body.cd17 .web-cover-bottom p{font-size:clamp(22px,6vw,37px)}
 body.cd17 .photo-cover-sub{max-width:85%;right:5%!important;font-size:clamp(18px,4.5vw,30px)!important}
 body.cd17 .about-core h2{font-size:clamp(30px,7.2vw,58px)}
}

body.cd17 .v2-core-copy>span{display:block;white-space:nowrap;width:max-content;max-width:100%;line-height:1.4}
/* Natural right edge: flex alignment, not translating an anchored block. */
body.cd17 .photo-cover .photo-cover-sub{position:relative;inset:auto!important;margin-left:auto!important;margin-right:0!important;align-self:flex-end!important;width:max-content;max-width:100%!important;text-align:right!important;white-space:normal}
body.cd17 .v2-core-copy>span{max-width:none!important}


/* COREDRIVE V2 QA7: focused corrections, after all previous styles. */
:root{--qa7-ink:#2b2221;--qa7-white:#fff9f0;--qa7-red:#f43832}

/* Header: the wordmark can sit over cream while the menu sits over cocoa. */
body.cd17 .site-header.nav-on-dark .primary-nav>a:not(.nav-contact),
body.cd17 .site-header.nav-on-dark .primary-nav>.nav-group>a {color:var(--qa7-white)!important}
body.cd17 .site-header.nav-on-dark .primary-nav .nav-contact{color:var(--qa7-white)!important}
/* Dropdown stays legible when the header is on a dark section. */
body.cd17 .site-header .nav-dropdown a{color:var(--qa7-ink)!important}

/* ABOUT: reading sits directly above the actual Japanese name, not under job titles. */
body.cd17 .profile-content .profile-person-name{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:clamp(28px,3vw,44px) 0 22px}
body.cd17 .profile-content .profile-name-roman{display:block;margin:0;color:var(--qa7-white);font-weight:850;font-size:clamp(11px,.95vw,14px);line-height:1.2;letter-spacing:.15em}
body.cd17 .profile-content .profile-person-name h3{margin:0;font-size:clamp(39px,4.2vw,68px);line-height:1.1}
body.cd17 .profile-content>small{display:block}

/* Archive openings: a full-width red curtain sweeps off to the RIGHT, then title and subtitle sequence automatically. */
body.cd17 .archive-cover,body.cd17 .gallery-cover{position:relative;overflow:hidden;isolation:isolate}
body.cd17 .archive-cover.choreo>.scene-swipe,body.cd17 .gallery-cover.choreo>.scene-swipe{
  display:block!important;position:absolute;inset:0;z-index:25;pointer-events:none;
  background:var(--qa7-red);opacity:1;transform:translate3d(101%,0,0);transform-origin:center;
}
/* Fallback (no JS / prefers reduced motion): the red cover does not obscure the content. */
@keyframes qa7ArchiveCurtain{0%,34%{transform:translate3d(0,0,0)}100%{transform:translate3d(102%,0,0)}}
@keyframes qa7ArchiveType{0%{opacity:0;transform:translate3d(-8vw,0,0);clip-path:inset(0 100% 0 0)}55%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:1;transform:translate3d(0,0,0);clip-path:inset(0 0 0 0)}}
@keyframes qa7ArchiveDesc{0%{opacity:0;transform:translate3d(-45px,0,0)}100%{opacity:1;transform:translate3d(0,0,0)}}
@media(prefers-reduced-motion:no-preference){
 html.motion-enabled body.cd17 .archive-cover.choreo:not(.is-played)>.scene-swipe,
 html.motion-enabled body.cd17 .gallery-cover.choreo:not(.is-played)>.scene-swipe{transform:translate3d(0,0,0)}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>.scene-swipe,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>.scene-swipe{animation:qa7ArchiveCurtain 1.35s cubic-bezier(.76,0,.24,1) .04s both!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>h1,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>h1{animation:qa7ArchiveType 1.02s cubic-bezier(.16,1,.3,1) .55s both!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>p,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>p{animation:qa7ArchiveDesc .75s cubic-bezier(.16,1,.3,1) 1.05s both!important}
}
@media(prefers-reduced-motion:reduce){
 body.cd17 .archive-cover.choreo>.scene-swipe,body.cd17 .gallery-cover.choreo>.scene-swipe{display:none!important}
 body.cd17 .archive-cover.choreo h1,body.cd17 .archive-cover.choreo p,
 body.cd17 .gallery-cover.choreo h1,body.cd17 .gallery-cover.choreo p{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}
}

/* SERVICE: revised one-line message; avoid arbitrary narrow line lengths on desktop. */
body.cd17 .service-lead>p{max-width:none;width:auto;white-space:normal;line-height:1.4;overflow-wrap:normal;word-break:normal}

/* CONTACT: custom checkbox, full click target and perfectly centered tick. */
body.cd17 .v2-privacy-consent>label{display:inline-flex;flex-direction:row;align-items:center;gap:13px;max-width:100%;line-height:1.6;cursor:pointer}
body.cd17 .v2-privacy-consent .v2-consent-native{
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  border:0!important;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%);
}
body.cd17 .v2-privacy-consent .v2-consent-box{
  display:grid;place-items:center;position:relative;flex:0 0 24px;width:24px;height:24px;
  background:var(--qa7-white);border:2px solid var(--qa7-ink);margin:0;padding:0;
}
body.cd17 .v2-privacy-consent .v2-consent-box:after{
  content:"✓";position:absolute;inset:0;display:grid;place-items:center;
  font:900 18px/1 sans-serif;color:var(--qa7-ink);opacity:0;
}
body.cd17 .v2-privacy-consent .v2-consent-native:checked+.v2-consent-box{background:var(--qa7-red)}
body.cd17 .v2-privacy-consent .v2-consent-native:checked+.v2-consent-box:after{opacity:1}
body.cd17 .v2-privacy-consent .v2-consent-native:focus-visible+.v2-consent-box{outline:3px solid var(--qa7-red);outline-offset:3px}
body.cd17 .v2-privacy-consent .v2-consent-label{display:inline;min-width:0;font-size:clamp(13px,1.05vw,16px)}
body.cd17 .v2-privacy-consent .v2-consent-label b{display:inline-block;vertical-align:middle}
@media(max-width:600px){body.cd17 .profile-content .profile-person-name{margin-top:24px}body.cd17 .v2-privacy-consent>label{gap:9px}}


/* QA8: faithful page copy and archives' full-screen autonomous red wipe. */
:root{--qa8-red:#f43832;--qa8-ink:#2b2221;--qa8-paper:#f6f1e9}
/* Matching right-hand nav colour over the cocoa half of ABOUT profile, without a header panel. */
body.cd17 .site-header.nav-on-dark .primary-nav> a:not(.nav-contact),
body.cd17 .site-header.nav-on-dark .primary-nav>.nav-group>a {color:#fff9f0!important}
body.cd17 .site-header:not(.nav-on-dark) .primary-nav>a:not(.nav-contact),
body.cd17 .site-header:not(.nav-on-dark) .primary-nav>.nav-group>a {color:var(--qa8-ink)!important}
body.cd17 .site-header .primary-nav .nav-contact {color:#fff9f0!important}
body.cd17 .site-header .nav-dropdown a{color:var(--qa8-ink)!important}
/* The roman reading is a part of the name, not of the title/roles. */
body.cd17 .profile-content .profile-person-name{display:flex!important;flex-direction:column;gap:5px;align-items:flex-start}
body.cd17 .profile-content .profile-person-name .profile-name-roman{display:block;order:0;margin:0!important;line-height:1.3;font-size:clamp(11px,1vw,14px);color:#fff9f0!important;opacity:1!important}
body.cd17 .profile-content .profile-person-name h3{order:1;margin:0!important}
/* WORKS child archive pages: full-bleed curtain that exits right; title follows automatically. */
body.cd17 .archive-cover.choreo,body.cd17 .gallery-cover.choreo{isolation:isolate;overflow:hidden;position:relative}
body.cd17 .archive-cover.choreo>.scene-swipe,body.cd17 .gallery-cover.choreo>.scene-swipe{
 display:block!important;position:absolute;inset:0;z-index:30;background:var(--qa8-red)!important;
 pointer-events:none;opacity:0;transform:translateX(102%);clip-path:none!important;
}
@keyframes qa8CurtainExit{0%,22%{transform:translateX(0);opacity:1}99.9%{opacity:1}100%{transform:translateX(102%);opacity:0}}
@keyframes qa8LettersEnter{0%{transform:translateX(-8%);clip-path:inset(0 100% 0 0)}100%{transform:none;clip-path:inset(0 0 0 0)}}
@keyframes qa8SubtitleEnter{0%{transform:translateX(-36px);opacity:0}100%{transform:none;opacity:1}}
@media(prefers-reduced-motion:no-preference){
 html.motion-enabled body.cd17 .archive-cover.choreo:not(.is-played)>.scene-swipe,
 html.motion-enabled body.cd17 .gallery-cover.choreo:not(.is-played)>.scene-swipe{opacity:1!important;transform:translateX(0)!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>.scene-swipe,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>.scene-swipe{
   animation:qa8CurtainExit 1.4s cubic-bezier(.76,0,.24,1) .06s both!important
 }
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>h1,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>h1{animation:qa8LettersEnter 1s cubic-bezier(.16,1,.3,1) .60s both!important}
 html.motion-enabled body.cd17 .archive-cover.choreo.is-played>p,
 html.motion-enabled body.cd17 .gallery-cover.choreo.is-played>p{animation:qa8SubtitleEnter .78s cubic-bezier(.16,1,.3,1) 1.02s both!important}
}
@media(prefers-reduced-motion:reduce){
 body.cd17 .archive-cover.choreo>.scene-swipe,body.cd17 .gallery-cover.choreo>.scene-swipe{display:none!important}
 body.cd17 .archive-cover.choreo>h1,body.cd17 .gallery-cover.choreo>h1,
 body.cd17 .archive-cover.choreo>p,body.cd17 .gallery-cover.choreo>p{opacity:1!important;transform:none!important;clip-path:none!important;animation:none!important}
}
/* New copy: keep the clean layout without arbitrary narrow wrapping containers. */
body.cd17 .web-cover-bottom p,body.cd17 .photo-cover-sub{max-width:100%;word-break:normal;overflow-wrap:normal;text-wrap:pretty}
body.cd17 .web-types h2,body.cd17 .photo-offerings h2{max-width:100%;width:auto;word-break:normal;overflow-wrap:normal;line-height:1.25}
body.cd17 .estimate-cover--v14 p{max-width:100%;text-wrap:pretty}
/* Privacy agreement: native input remains required and keyboard-accessible, check centered in visual box. */
body.cd17 .v2-privacy-consent>label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:12px}
body.cd17 .v2-privacy-consent .v2-consent-box{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;position:relative;vertical-align:middle}
body.cd17 .v2-privacy-consent .v2-consent-box:after{inset:0;place-items:center;line-height:1;transform:none}
/* Remove estimate-only live-settings decorative bar (not the results, calculations, or detail). */
body.cd17 .cd17-estimate>.section-topline{display:none!important}


/* QA9: targeted visual parity with the selected WORKS animation, not extra decoration. */
/* WEB service: a cream curtain clears to the right over the established red canvas. */
body.cd17 .web-cover.choreo > .scene-swipe{
  background:var(--paper)!important;
  transform-origin:right center!important;
}
/* WORKS / PHOTOGRAPHY archives: SAME duration, easing and start offset as WORKS. */
@media (prefers-reduced-motion:no-preference){
  html.motion-enabled body.cd17 .archive-cover.choreo:not(.is-played) > .scene-swipe,
  html.motion-enabled body.cd17 .gallery-cover.choreo:not(.is-played) > .scene-swipe{
    opacity:1!important;transform:scaleX(1)!important;
  }
  html.motion-enabled body.cd17 .archive-cover.choreo.is-played > .scene-swipe,
  html.motion-enabled body.cd17 .gallery-cover.choreo.is-played > .scene-swipe{
    opacity:1!important;transform-origin:right center!important;
    animation:bigWipe 1.14s cubic-bezier(.76,0,.24,1) .02s both!important;
  }
  html.motion-enabled body.cd17 .archive-cover.choreo.is-played > h1,
  html.motion-enabled body.cd17 .gallery-cover.choreo.is-played > h1{
    animation:bigType 1.05s var(--ease) .43s both!important;
  }
  html.motion-enabled body.cd17 .archive-cover.choreo.is-played > p,
  html.motion-enabled body.cd17 .gallery-cover.choreo.is-played > p{
    animation:bigUp .9s var(--ease) 1s both!important;
  }
}
@media (prefers-reduced-motion:reduce){
  body.cd17 :is(.web-cover,.archive-cover,.gallery-cover).choreo > .scene-swipe{display:none!important}
}
/* WEB services: one outer perimeter and one-pixel, uniform inner grid lines. */
body.cd17 .web-type-grid{
  display:grid;gap:1px!important;padding:1px!important;
  border:0!important;background:rgba(43,34,33,.62);
}
body.cd17 .web-type-grid > div{
  margin:0!important;border:0!important;background:var(--paper);
}
/* VISION: English signature stays left; Japanese message is right-aligned at right edge. */
body.cd17 .manifesto-bottom{
  display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,2fr);
  align-items:end;column-gap:clamp(20px,4vw,70px);
}
body.cd17 .manifesto-bottom > p{
  justify-self:end;align-self:end;text-align:right;
  max-width:640px;width:100%;margin-left:auto;
}
/* TOP two featured panels: one true vertical centre for client name + detail link. */
body.cd17 .project .project-info{position:relative;display:flex;flex-direction:column;justify-content:space-between}
body.cd17 .project .project-number--category{
  flex:0 0 auto;font-size:clamp(14px,1.4vw,21px);letter-spacing:.04em;line-height:1.35;
}
body.cd17 .project .project-center{
  position:absolute;left:5vw;right:4.5vw;top:50%;transform:translateY(-50%);
  margin:0;max-width:none;min-width:0;display:flex;flex-direction:column;
  justify-content:center;align-items:flex-start;gap:clamp(18px,2.4vw,36px);
}
body.cd17 .project .project-client{
  margin:0;font:900 clamp(30px,3.7vw,67px)/1.16 var(--text),sans-serif;
  letter-spacing:-.045em;overflow-wrap:anywhere;word-break:normal;max-width:100%;
}
body.cd17 .project .project-detail-link{
  display:inline-flex;align-items:center;gap:clamp(18px,2vw,42px);
  width:max-content;max-width:100%;padding:10px 0;
  border-bottom:1px solid currentColor;font-size:clamp(12px,1vw,16px);
  font-weight:850;letter-spacing:.025em;line-height:1.5;
}
body.cd17 .project .project-detail-link:hover{opacity:.72}
body.cd17 .project .project-archive-link{position:relative;z-index:2;align-self:flex-start;margin-top:auto}
/* A new content wrapper must participate in the same autonomous reveal as its neighbors. */
html.motion-ready body.cd17 .project .project-center{opacity:0}
body.cd17 .project.is-active .project-center{
  animation:qa9ProjectCenter .78s var(--ease) .52s both;
}
@keyframes qa9ProjectCenter{
  from{opacity:0;transform:translateY(calc(-50% + 50px))}
  to{opacity:1;transform:translateY(-50%)}
}
@media(max-width:750px){
  body.cd17 .manifesto-bottom{grid-template-columns:1fr;gap:16px}
  body.cd17 .manifesto-bottom > p{margin-left:auto;max-width:100%;text-align:right}
  body.cd17 .project .project-center{
    left:5%;right:5%;gap:18px;
  }
  body.cd17 .project .project-client{font-size:clamp(27px,7.5vw,48px)}
  body.cd17 .project .project-number--category{font-size:clamp(12px,3.6vw,17px)}
  body.cd17 .project .project-info{min-height:365px}
}
@media(prefers-reduced-motion:reduce){
  html.motion-ready body.cd17 .project .project-center{
    opacity:1!important;transform:translateY(-50%)!important;animation:none!important;
  }
}


/* QA10: maintain the established COREDRIVE visual language only.
 * Large editorial typography, uniform hairlines, cocoa / cream / hot red.
 * No additional decoration and no changes to stored WordPress data. */
:root{--cd-qa10-ink:#2b2221;--cd-qa10-cream:#f5f0e8;--cd-qa10-red:#f43832;--cd-qa10-white:#fff9f0}

/* TOP works: exact same typography/padding for both links; retain separate roles. */
body.cd17 .project .project-detail-link,
body.cd17 .project .project-archive-link{
  display:inline-flex;align-items:center;justify-content:flex-start;
  gap:clamp(12px,1.7vw,34px);
  align-self:flex-start;width:max-content;max-width:100%;
  padding:11px 0;border:0;border-bottom:1px solid currentColor;
  background:none;color:inherit;text-decoration:none;
  font:850 clamp(12px,1vw,16px)/1.5 var(--text),sans-serif;
  letter-spacing:.025em;transition:opacity .25s ease;
}
body.cd17 .project .project-detail-link:hover,
body.cd17 .project .project-archive-link:hover{opacity:.7}

/* ABOUT: short English identification, not an additional tagline. */
body.cd17 .about-cover-sub>span:first-child{
  font:900 clamp(12px,1.1vw,17px)/1.35 var(--text),sans-serif;
  letter-spacing:.1em;white-space:normal;
}

/* Header sampled by the actual visible section, including nested single templates.
 * Avoid any fixed dark/light header surface, preserving the approved HTML overlay.
 * Work and photography details have a cocoa hero, then lighter sections. */
body.single-work.cd17 .site-header.nav-on-dark .primary-nav>a:not(.nav-contact),
body.single-photography.cd17 .site-header.nav-on-dark .primary-nav>a:not(.nav-contact),
body.single-work.cd17 .site-header.nav-on-dark .primary-nav>.nav-group>a,
body.single-photography.cd17 .site-header.nav-on-dark .primary-nav>.nav-group>a{
  color:var(--cd-qa10-white)!important;
}

/* Blog body: H1—H6 respect the same hierarchy as existing RYDEN-reference pages.
 * Heading sizes follow the site typography; a simple rule only at H2 (section level).
 * No decorative blocks, arbitrary left bars, forced breaks or fixed character widths. */
body.cd17 .cd17-article-content :is(h1,h2,h3,h4,h5,h6,.wp-block-heading){
  color:var(--cd-qa10-ink)!important;
  font-family:var(--text),sans-serif;font-style:normal;
  font-weight:900;letter-spacing:-.055em;
  text-align:left;line-height:1.27;
  word-break:normal;overflow-wrap:break-word;
  opacity:1;
  max-width:100%;width:auto;
  text-wrap:pretty;
}
body.cd17 .cd17-article-content h1{
  font-size:clamp(36px,4.2vw,64px);line-height:1.2;
  margin:clamp(52px,6vw,86px) 0 28px;
}
body.cd17 .cd17-article-content h2{
  border:0;border-top:1px solid rgba(43,34,33,.5);
  padding-top:clamp(20px,2.4vw,34px);
  font-size:clamp(29px,3.2vw,48px);line-height:1.25;
  margin:clamp(62px,7vw,104px) 0 clamp(20px,2.5vw,36px);
}
body.cd17 .cd17-article-content h3{
  font-size:clamp(25px,2.5vw,37px);
  margin:clamp(40px,4vw,62px) 0 20px;
}
body.cd17 .cd17-article-content h4{
  font-size:clamp(21px,2vw,29px);
  margin:clamp(32px,3.3vw,50px) 0 18px;
}
body.cd17 .cd17-article-content h5{
  font-size:clamp(18px,1.6vw,23px);
  margin:clamp(28px,3vw,40px) 0 14px;
}
body.cd17 .cd17-article-content h6{
  font-size:clamp(16px,1.25vw,19px);
  letter-spacing:-.025em;margin:26px 0 12px;
}
body.cd17 .cd17-article-content :is(p,ul,ol,blockquote,figure,table){margin-block-end:clamp(18px,2.1vw,29px)}
body.cd17 .cd17-article-content :is(ul,ol){padding-left:1.5em}
body.cd17 .cd17-article-content li{margin-bottom:.55em}
body.cd17 .cd17-article-content a:not(.wp-element-button){color:var(--cd-qa10-ink);text-decoration:underline;text-decoration-color:var(--cd-qa10-red);text-underline-offset:4px;text-decoration-thickness:2px}
body.cd17 .cd17-article-content a:hover{color:var(--cd-qa10-red)!important}
body.cd17 .cd17-article-content blockquote{
  border:0;border-top:1px solid rgba(43,34,33,.5);border-bottom:1px solid rgba(43,34,33,.5);
  margin-inline:0;padding:clamp(22px,3vw,36px) 0;
  font-size:clamp(19px,2.2vw,29px);font-weight:800;line-height:1.6;
}
body.cd17 .cd17-article-content :is(img,video,iframe){max-width:100%;height:auto}
body.cd17 .cd17-article-content .wp-block-image figcaption{font-size:13px;line-height:1.65;color:#5d534e;margin-top:8px}
@media(max-width:650px){
 body.cd17 .cd17-article-content h1{font-size:clamp(30px,8vw,44px)}
 body.cd17 .cd17-article-content h2{font-size:clamp(27px,7.2vw,36px)}
 body.cd17 .cd17-article-content h3{font-size:clamp(23px,6.1vw,30px)}
 body.cd17 .cd17-article-content h4{font-size:clamp(20px,5.4vw,25px)}
 body.cd17 .cd17-article-content h5{font-size:clamp(17px,4.5vw,22px)}
 body.cd17 .cd17-article-content h6{font-size:clamp(15px,4.2vw,19px)}
}


/* QA11: exact ABOUT copy and original manifesto English typography. No palette changes. */
body.cd17 .about-cover .about-cover-type {
  font-family:var(--text);
  font-size:clamp(60px,12vw,215px);
  font-weight:900;
  line-height:.93;
  letter-spacing:-.1em;
}
body.cd17 .about-cover .about-cover-type > span:nth-child(2) {padding-left:10%;}
body.cd17 .about-cover .about-cover-type .about-line-final {padding-left:29%;}
body.cd17 .about-cover .about-red-word {color:var(--red);font-style:normal;}
body.cd17 .about-cover .about-cover-sub > .about-cover-english {
  display:block;
  /* Identical font metrics to .manifesto-bottom strong in home.css. */
  font:900 clamp(16px,2vw,32px)/1.12 var(--display);
  letter-spacing:-.04em;
  color:inherit;
  text-transform:none;
  max-width:100%;
  white-space:normal;
}
body.cd17 .about-cover .about-cover-english > span {display:block;white-space:nowrap;}
/* WEB MV remains a true viewport height across desktop and phone breakpoints. */
body.cd17 .web-cover {
  height:100vh;
  min-height:100vh;
  max-height:none;
  box-sizing:border-box;
}
@media(max-width:760px){
  body.cd17 .about-cover .about-cover-type{font-size:15vw;}
  body.cd17 .about-cover .about-cover-type > span:nth-child(2){padding-left:3%;}
  body.cd17 .about-cover .about-cover-type .about-line-final{padding-left:15%;}
  body.cd17 .web-cover{height:100vh;min-height:100vh;}
}
@media(max-width:480px){
  body.cd17 .about-cover .about-cover-sub > .about-cover-english{font-size:clamp(16px,4vw,22px);line-height:1.12;}
}


/* QA12 — requested typography refinements; original motion / markup remains intact. */

/* ABOUT: center the entire three-line title on both axes of the opening viewport.
 * The anchor stays fixed while the existing h1 entrance animation can transform independently. */
body.cd17 .about-cover{position:relative;min-height:100vh;min-height:100svh;}
body.cd17 .about-cover .about-cover-type-anchor{
  position:absolute;inset:0;z-index:2;
  display:grid;place-items:center;
  padding:clamp(18px,4vw,70px);pointer-events:none;
}
body.cd17 .about-cover .about-cover-type{
  position:relative;max-width:100%;margin:0;
  font-family:var(--text);font-weight:900;
  font-size:clamp(57px,min(13vw,17vh),190px);
  line-height:.96;letter-spacing:-.09em;
  text-align:center;white-space:nowrap;
}
body.cd17 .about-cover .about-cover-type > span,
body.cd17 .about-cover .about-cover-type .about-line-final{
  display:block;padding-left:0!important;margin-left:0!important;
}
body.cd17 .about-cover .about-red-word{color:var(--red);font-style:normal;}
body.cd17 .about-cover .about-cover-sub{position:relative;z-index:3;margin-top:auto;}

/* ABOUT: single-word red accents, no new ornaments. */
body.cd17 .about-editorial .editorial-content h2 .v2-highlight-word{
  color:var(--red);font:inherit;font-style:normal;
}

/* SERVICE: highlighting remains the existing em treatment, now applied to 目的. */
body.cd17 .service-purpose .purpose-layout h2 em{color:var(--red);font-style:normal;}

/* WEB: strengthen the supporting message; '魅せる' is the only cream-white word. */
body.cd17 .web-cover .web-cover-bottom p{
  font-size:clamp(28px,4.2vw,65px);
  font-weight:900;line-height:1.27;letter-spacing:-.06em;
  text-wrap:pretty;word-break:normal;overflow-wrap:normal;
  max-width:100%;
}
body.cd17 .web-cover .web-catch-accent{color:var(--white);font-style:normal;}

/* PHOTO: match WEB's supporting-copy scale; only 営業 changes color. */
body.cd17 .photo-cover .photo-cover-sub{
  font-size:clamp(28px,4.2vw,65px);font-weight:900;
  line-height:1.27;letter-spacing:-.06em;
  text-wrap:pretty;max-width:100%;
}
body.cd17 .photo-cover .photo-catch-accent{color:var(--red);font-style:normal;}

/* TOP WORKS: use the smallest established CTA text (same for detail and archive);
 * preserve touch-friendly height and the common underline. */
body.cd17 .project .project-detail-link,
body.cd17 .project .project-archive-link{
  font-size:clamp(11px,.82vw,13px);line-height:1.45;
  font-weight:850;min-height:44px;padding:12px 0;
}
@media(max-width:760px){
  body.cd17 .about-cover .about-cover-type{font-size:clamp(55px,13vw,90px);line-height:.99;letter-spacing:-.08em;}
  body.cd17 .about-cover .about-cover-type-anchor{padding:4.5vw;}
  body.cd17 .web-cover .web-cover-bottom p{font-size:clamp(28px,6vw,43px);}
  body.cd17 .photo-cover .photo-cover-sub{font-size:clamp(27px,6vw,43px)!important;}
}
@media(max-width:420px){
  body.cd17 .about-cover .about-cover-type{font-size:clamp(49px,12.8vw,61px);}
  body.cd17 .web-cover .web-cover-bottom p{font-size:clamp(25px,6.4vw,30px);}
  body.cd17 .photo-cover .photo-cover-sub{font-size:clamp(25px,6.4vw,30px)!important;}
}


/* QA13: Display-only corrections, retaining old content storage & calculator logic. */
:root{--v2-qa13-ink:#2b2221;--v2-qa13-paper:#f5f0e8;--v2-qa13-red:#f43832;--v2-qa13-cream:#fff9f0}

/* Archive: tall screenshot shows the TOP portion at full width; landscape thumbnail is
 * vertically centered inside the same square, with NO additional coloured fill. */
body.cd17 .cd17-cards .cd17-card-photo{aspect-ratio:1;overflow:hidden;background:transparent!important;display:flex;align-items:flex-start;justify-content:center}
body.cd17 .cd17-cards .cd17-card-photo.is-tall img{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;object-position:top center!important}
body.cd17 .cd17-cards .cd17-card-photo.is-landscape{align-items:center;}
body.cd17 .cd17-cards .cd17-card-photo.is-landscape img{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important}
/* Photography still gets the full photo-focused presentation. */
body.cd17 .cd17-cards-photo .cd17-card-photo.is-photo{background:transparent!important;align-items:center}
body.cd17 .cd17-cards-photo .cd17-card-photo.is-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center}

/* PROJECT single: normal mode is stacked, not a two-column split. */
body.cd17 .cd-v2-work-lead{background:var(--v2-qa13-paper);color:var(--v2-qa13-ink)}
body.cd17 .cd-v2-work-lead-copy{padding:clamp(40px,6vw,95px) clamp(20px,5vw,90px);margin:0 auto;width:100%;max-width:1200px}
body.cd17 .cd-v2-work-lead-copy .cd-v2-work-kicker{font-size:clamp(13px,1.1vw,16px);font-weight:900;letter-spacing:.09em}
body.cd17 .cd-v2-work-lead-copy h2{font-size:clamp(34px,5.4vw,80px);line-height:1.18;letter-spacing:-.065em;margin:clamp(24px,3vw,40px) 0;overflow-wrap:anywhere}
body.cd17 .cd-v2-work-lead-copy p{font-size:clamp(16px,1.5vw,22px);line-height:1.85;margin:0 0 25px;overflow-wrap:break-word}
body.cd17 .cd-v2-work-seo{color:#554844}
body.cd17 .cd-v2-work-detail--standard .cd-v2-work-media{padding:clamp(35px,5vw,90px) clamp(20px,5vw,90px) 0;display:flex;justify-content:center}
body.cd17 .cd-v2-standard-image{width:100%;max-width:1200px;max-height:65vh;aspect-ratio:16/9;overflow:hidden;display:flex;align-items:center;justify-content:center;background:transparent}
body.cd17 .cd-v2-standard-image.is-landscape img{width:100%;height:100%;object-fit:contain;object-position:center center}
body.cd17 .cd-v2-standard-image.is-tall img{width:100%;height:auto;max-height:none;object-fit:contain;object-position:center top;align-self:flex-start}
/* The optional full-site screenshot mode: desktop = copy left 2/3, complete image right 1/3. */
body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);align-items:start}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead-copy{grid-column:1;grid-row:1;align-self:start;max-width:none;padding:clamp(55px,7vw,120px) clamp(24px,5vw,88px)}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-media{grid-column:2;grid-row:1;min-width:0;padding:0;}
body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image{width:100%;overflow:visible}
body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block}
body.cd17 .cd-v2-mobile-zoom{display:none}
body.cd17 .cd-v2-term{display:inline-block;margin:0 8px 8px 0;padding:6px 11px;background:var(--v2-qa13-red);color:white;font-size:clamp(12px,1vw,15px);font-weight:800}

/* Photography single: equal width panels, both sides readable, images never cropped. */
body.cd17 .cd17-photo-single .cd-v2-photo-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;align-items:stretch}
body.cd17 .cd17-photo-single .cd-v2-photo-intro>div:first-child{padding:clamp(40px,6vw,110px) clamp(22px,5vw,90px);min-width:0;}
body.cd17 .cd17-photo-single .cd-v2-photo-cover{display:block;align-self:start;justify-self:stretch;overflow:visible;min-height:0;height:auto;padding:0;margin:0;background:transparent;border:0;box-shadow:none;}
body.cd17 .cd17-photo-single .cd-v2-photo-cover img{display:block;position:static;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;object-position:center center}

/* ABOUT: asymmetrical text line alignment within ONE centered title group. */
body.cd17 .about-cover .about-cover-type-anchor{display:grid;place-items:center}
body.cd17 .about-cover .about-cover-type{display:block;width:min(90vw,1100px);max-width:100%;margin:0 auto!important;text-align:unset!important;}
body.cd17 .about-cover .about-cover-type>span:nth-child(1){text-align:left!important;}
body.cd17 .about-cover .about-cover-type>span:nth-child(2){text-align:center!important;}
body.cd17 .about-cover .about-cover-type>span:nth-child(3){text-align:right!important;}
/* Small labels were undersized: restore WORKS actions and treat them as minimum type scale. */
body.cd17 .project .project-detail-link,body.cd17 .project .project-archive-link{font-size:clamp(13px,1vw,16px)!important;min-height:44px}
body.cd17 :is(.scene-index,.section-topline,.editorial-label,.project-number,.works-baseline,.human-caption>span){font-size:max(13px,1vw)!important}
body.cd17 :is(.cd17-card-meta>b,.cd17-card-meta>span,.cd17-card-meta small,.cd17-filters a,.cd17-post-row time,.cd17-post-row span,.cd17-gallery figcaption){font-size:clamp(13px,1vw,16px)!important}
body.cd17 .cd17-card-meta p{font-size:clamp(14px,1.1vw,17px);line-height:1.75}
body.cd17 .cd17-form>label{font-size:clamp(13px,1vw,16px)}
body.cd17 .v2-term-badge{font-size:clamp(12px,1vw,15px)!important}

/* Estimate design radio choices: center label, description and price like other tiles. */
body.cd17 .estimate-service-panel .estimate-fieldset:has(input[id*="-web-design-"]) .estimate-option-box{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;gap:8px!important;
}
body.cd17 .estimate-service-panel .estimate-fieldset:has(input[id*="-web-design-"]) .estimate-option-copy,
body.cd17 .estimate-service-panel .estimate-fieldset:has(input[id*="-web-design-"]) .estimate-option-price{width:100%;text-align:center!important;}

/* Mobile: full-site desktop rendering is not useful: use a tap-to-enlarge preview. */
@media(max-width:760px){
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead{display:flex;flex-direction:column;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-media{order:0;width:100%;padding:35px 5% 0;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead-copy{order:1;width:100%;padding:35px 5% 60px;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image{display:none}
 body.cd17 .cd-v2-work-detail--full .cd-v2-mobile-zoom{display:block;width:100%}
 body.cd17 .cd-v2-image-zoom{display:block;width:100%;aspect-ratio:16 / 11;border:0;background:transparent;padding:0;overflow:hidden;cursor:zoom-in;}
 body.cd17 .cd-v2-image-zoom img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:top center;}
 body.cd17 .cd-v2-zoom-caption{font-size:14px;font-weight:800;text-align:right;padding:10px 0;color:#2b2221}
 body.cd17 .cd17-photo-single .cd-v2-photo-intro{grid-template-columns:1fr;}
 body.cd17 .cd17-photo-single .cd-v2-photo-cover{min-height:0;max-height:none;padding:0;margin:0;}
 body.cd17 .cd17-photo-single .cd-v2-photo-cover img{max-height:74vh}
}
@media(max-width:420px){body.cd17 .about-cover .about-cover-type{width:91vw;}}

/* Full screenshot mode keeps the saved project fields with the left-hand copy. */
body.cd17 .cd-v2-work-inline-details{border-top:1px solid rgba(43,34,33,.45);margin:clamp(35px,5vw,70px) 0 0;padding:0;display:block}
body.cd17 .cd-v2-work-inline-details>div{display:grid;grid-template-columns:minmax(125px,30%) minmax(0,1fr);gap:20px;border-bottom:1px solid rgba(43,34,33,.26);padding:clamp(18px,2vw,30px) 0}
body.cd17 .cd-v2-work-inline-details dt{font-size:clamp(13px,1vw,16px);font-weight:900}
body.cd17 .cd-v2-work-inline-details dd{margin:0;font-size:clamp(15px,1.3vw,20px);line-height:1.7;overflow-wrap:anywhere}
@media(max-width:760px){body.cd17 .cd-v2-work-inline-details>div{grid-template-columns:1fr;gap:10px}}


/* COREDRIVE V2 QA14 — Post detail layout fixes, no legacy visual rules. */
/* WORK: full screenshot mode is a single centered, padded 2:1 editorial grid.
 * The title, meta information AND actual WordPress post_content now live in the LEFT column. */
body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  gap:clamp(22px,3.2vw,56px);
  align-items:start;
  width:100%;max-width:1680px;margin-inline:auto;
  padding:clamp(32px,4.5vw,78px) clamp(22px,4.5vw,78px);
  background:#f5f0e8;
}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead-copy{
  grid-column:1;grid-row:1;
  width:100%;min-width:0;max-width:none;
  padding:0!important;margin:0;
}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-media{
  grid-column:2;grid-row:1;
  width:100%;min-width:0;max-width:none;
  padding:0!important;margin:0;
}
body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image{
  display:block;width:100%;max-width:100%;overflow:hidden;
}
body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image img{
  display:block;position:static;width:100%;height:auto;max-width:100%;max-height:none;
  object-fit:contain;object-position:top center;
}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-full-body{
  display:block!important;position:static;max-width:100%;width:100%;
  background:transparent!important;color:#2b2221!important;
  padding:clamp(26px,3vw,46px) 0 0!important;
  margin:clamp(20px,3vw,44px) 0 0;
  border-top:1px solid rgba(43,34,33,.28);
  overflow-wrap:anywhere;
}
body.cd17 .cd-v2-work-full-body :is(p,li,blockquote){
  font-size:clamp(15px,1.2vw,19px);line-height:1.95;color:#2b2221;
}
body.cd17 .cd-v2-work-full-body :is(h2,h3,h4,h5,h6){
  color:#2b2221;max-width:100%;overflow-wrap:anywhere;
}
body.cd17 .cd-v2-work-full-body img{max-width:100%;height:auto;}
body.cd17 .cd-v2-work-full-body :is(figure,iframe,video,table){max-width:100%;}
body.cd17 .cd-v2-work-detail--full .cd-v2-work-inline-details{min-width:0;max-width:100%}

/* PHOTO: restore the independent left/right 50:50 layout in NORMAL FLOW.
 * No fixed image height, no cropping, no artificial background gutters. */
body.cd17 .cd17-photo-single .cd-v2-photo-intro{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
  min-height:0!important;
  height:auto!important;
  position:relative;
  background:#f5f0e8;
  overflow:visible;
}
body.cd17 .cd17-photo-single .cd-v2-photo-information{
  grid-column:1;grid-row:1;
  min-width:0;min-height:0;
  padding:clamp(36px,5vw,82px) clamp(22px,5vw,82px);
  display:flex;flex-direction:column;justify-content:center;gap:clamp(22px,2.6vw,38px);
  background:#f5f0e8;color:#2b2221;
}
body.cd17 .cd17-photo-single .cd-v2-photo-information h2{margin:0;font-size:clamp(34px,4.3vw,67px);line-height:1.15;overflow-wrap:anywhere;}
body.cd17 .cd17-photo-single .cd-v2-photo-cover{
  grid-column:2;grid-row:1;
  box-sizing:border-box;
  width:100%;min-width:0;min-height:0!important;max-height:none!important;
  height:auto!important;
  display:block!important;align-self:start!important;justify-self:stretch!important;
  padding:0!important;margin:0!important;
  overflow:visible!important;
  background:transparent!important;border:0;
}
body.cd17 .cd17-photo-single .cd-v2-photo-cover img,
body.cd17 .cd17-photo-single .cd-v2-photo-cover .cd-v2-photo-full-image{
  position:static!important;
  display:block!important;
  width:100%!important;height:auto!important;
  max-width:100%!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;
  margin:0!important;padding:0!important;
  border:0;vertical-align:top;
}
body.cd17 .cd17-photo-single .cd17-gallery{
  clear:both;position:relative;z-index:1;margin-top:0;
}
/* Full-screen heading should not compete with the fixed header or the next section. */
body.cd17 .cd17-photo-single .cd17-single-hero{
  min-height:max(700px,100svh);height:auto!important;
  box-sizing:border-box;
  padding:clamp(128px,15vh,200px) 5% clamp(50px,7vh,90px);
  display:flex;flex-direction:column;justify-content:flex-end;gap:clamp(22px,4vh,60px);
}
body.cd17 .cd17-photo-single .cd17-single-hero h1{
  font-size:clamp(60px,12vw,175px);line-height:.9;max-width:100%;
  overflow-wrap:normal;word-break:normal;
}
/* ABOUT: increase asymmetric title range while keeping whole 3-line group centered. */
body.cd17 .about-cover .about-cover-type{
  width:min(96vw,1300px)!important;
  max-width:100%;margin-inline:auto!important;
}
body.cd17 .about-cover .about-cover-type>span:nth-child(1){text-align:left!important;}
body.cd17 .about-cover .about-cover-type>span:nth-child(2){text-align:center!important;}
body.cd17 .about-cover .about-cover-type>span:nth-child(3){text-align:right!important;}
@media(max-width:760px){
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead{
   display:flex!important;flex-direction:column;gap:0;
   padding:30px 5% 60px;
 }
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-media{order:0;width:100%;padding:0!important;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-work-lead-copy{order:1;width:100%;padding:32px 0 0!important;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-desktop-full-image{display:none!important;}
 body.cd17 .cd-v2-work-detail--full .cd-v2-mobile-zoom{display:block!important;}
 body.cd17 .cd17-photo-single .cd-v2-photo-intro{display:flex!important;flex-direction:column;}
 body.cd17 .cd17-photo-single .cd-v2-photo-information{order:0;padding:34px 5% 28px;}
 body.cd17 .cd17-photo-single .cd-v2-photo-cover{order:1;width:100%;max-height:none!important;padding:0!important;}
 body.cd17 .cd17-photo-single .cd-v2-photo-cover img{max-height:none!important;width:100%!important;height:auto!important;}
 body.cd17 .cd17-photo-single .cd17-single-hero{min-height:max(600px,100svh);padding:112px 5% 55px;gap:35px;}
 body.cd17 .cd17-photo-single .cd17-single-hero h1{font-size:clamp(58px,16vw,112px);}
 body.cd17 .about-cover .about-cover-type{width:100%!important;max-width:100%!important;}
}

/* QA15: no framing, no tinted gutters, no stretched object-fit letterboxing.
   A landscape photo renders at its natural aspect ratio directly against the page background. */
body.cd17 .cd17-photo-single .cd-v2-photo-intro .cd-v2-photo-cover{
  display:block!important;
  align-self:start!important;
  justify-self:stretch!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.cd17 .cd17-photo-single .cd-v2-photo-intro .cd-v2-photo-cover img{
  display:block!important;
  position:static!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}


/* v2.0.24 — TOP scene indices: editorial English descriptions at the far
   right, with their text right-aligned at ALL widths. Left labels stay left. */
body.cd17 :is(
  .manifesto-index,
  .works-intro > .scene-index,
  .service-index,
  .approach > .scene-index,
  .contact-index
) > span:last-child {
  display:block;
  flex:0 1 auto;
  width:max-content;
  max-width:50%;
  min-width:0;
  margin-left:auto;
  margin-right:0;
  text-align:right;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  line-height:1.4;
}

/* WEB's MV must occupy the *visible* viewport like PHOTO on all devices.
   Later cascade location is intentional: old 700px/clamp mobile min heights
   must not override the actual small-screen viewport. */
body.cd17 .web-cover {
  box-sizing:border-box;
  height:100vh;
  min-height:100vh;
  height:100svh;
  min-height:100svh;
  height:100dvh;
  min-height:100dvh;
  max-height:none;
}
@media(max-width:767px) {
  body.cd17 .web-cover {
    height:100vh;
    min-height:100vh;
    height:100svh;
    min-height:100svh;
    height:100dvh;
    min-height:100dvh;
    max-height:none;
  }
}

/* v2.0.25: text in Gutenberg may wrap to more than one line; never clip the
   second line at the lower viewport edge. 100dvh is a floor, not a cap. */
body.cd17 .web-cover {
  height:auto;
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  max-height:none;
  overflow:hidden;
  justify-content:space-between;
}
body.cd17 .web-cover .web-cover-bottom {
  flex-shrink:0;
  min-width:0;
  margin-top:auto;
  align-items:flex-end;
}
body.cd17 .web-cover .web-cover-bottom p {
  width:auto;
  max-width:100%;
  min-width:0;
  margin:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-wrap:wrap;
}
body.cd17 .web-cover .web-cover-bottom p em{display:inline;}
@media(max-width:767px){
  body.cd17 .web-cover{height:auto;min-height:100dvh;}
}


/* v2.0.26 — ALL pages: second/right editorial index label is always pinned
   to the right edge and right-aligned. Text may wrap freely on smaller widths. */
body.cd17 :is(.scene-index, .section-topline, .photo-editorial-meta) {
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:flex-start;
  min-width:0;
}
body.cd17 :is(.scene-index, .section-topline, .photo-editorial-meta) > :first-child:not(:last-child) {
  min-width:0;
  flex:0 1 50%;
  text-align:left;
}
body.cd17 :is(.scene-index, .section-topline, .photo-editorial-meta) > :last-child:not(:first-child) {
  min-width:0;
  display:block !important;
  width:auto;
  max-width:52%;
  flex:0 1 52%;
  margin-left:auto;
  margin-right:0;
  text-align:right !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.4;
}


/* v2.0.26 — WORKS image preview: screen-width image with natural document
   height. Very tall screenshots scroll vertically inside the dialog. */
body.cd17 .cd-v2-lightbox {
  position:fixed;
  inset:0;
  z-index:99999;
  box-sizing:border-box;
  display:block;
  width:100%;
  height:100vh;
  height:100dvh;
  padding:clamp(56px, 8vh, 76px) clamp(10px, 2vw, 24px) 24px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  background:rgba(18, 15, 15, .96);
  text-align:center;
}
body.cd17 .cd-v2-lightbox-image {
  display:block;
  position:static;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  margin:0 auto;
  border:0;
  box-shadow:none;
}
body.cd17 .cd-v2-lightbox-close {
  position:fixed;
  right:max(12px, env(safe-area-inset-right));
  top:max(12px, env(safe-area-inset-top));
  z-index:2;
  border:0;
  padding:12px 18px;
  background:#f43832;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
