/* Trustwells editorial inner pages. The shared frame lives in style.css. */
.tw-page-hero { padding: 84px 0 78px; background: var(--tw-paper); }
.tw-page-hero .tw-eyebrow { margin-bottom: 30px; }
.tw-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.tw-page-hero h1 { margin: 0; font: 400 clamp(56px, 6.2vw, 88px)/1.03 var(--tw-serif); letter-spacing: -.04em; max-width: 940px; }
.tw-page-hero h1 em { font-weight: 400; color: var(--tw-copper); }
.tw-page-hero-grid > p { max-width: 370px; margin: 0 0 5px; font-size: 15px; line-height: 1.85; color: #666963; }
.tw-page-hero--compact { padding-top: 68px; padding-bottom: 54px; border-bottom: 1px solid var(--tw-line); }
.tw-page-hero--compact h1 { font-size: clamp(46px, 5vw, 72px); }
.tw-page-hero--compact .tw-eyebrow { margin-bottom: 22px; }
.tw-page-content .tw-content { min-width: 0; }
.tw-page-content .tw-content > p, .tw-page-content .tw-content > ul, .tw-page-content .tw-content > ol { max-width: 820px; line-height: 1.85; }
.tw-page-content .tw-content > h2 { margin-top: 42px; }
.tw-entry + .tw-entry { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--tw-line); }

/* About: an open editorial introduction, one architectural image, and principles. */
.tw-about-hero { padding-bottom: 65px; }
.tw-about-image { position: relative; height: 475px; isolation: isolate; }
.tw-about-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; }
.tw-about-image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(21, 28, 27, .68)); pointer-events: none; }
.tw-image-caption { position: absolute; bottom: 34px; left: 38px; z-index: 1; color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tw-split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 112px; }
.tw-split-section h2 { margin-top: 22px; }
.tw-split-section .tw-prose { padding-top: 4px; }
.tw-prose p { font-size: 15px; line-height: 1.9; color: #696d66; margin: 0 0 23px; }
.tw-prose .tw-lead, .tw-lead { font-size: 21px; line-height: 1.6; letter-spacing: -.025em; color: var(--tw-ink); }
.tw-values-section { background: #eeebe4; }
.tw-values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 58px; border-top: 1px solid #d7d1c6; }
.tw-value { padding: 35px 35px 4px; border-left: 1px solid #d7d1c6; }
.tw-value:first-child { border-left: 0; padding-left: 0; }
.tw-value:last-child { padding-right: 0; }
.tw-value > span { display: inline-block; margin-bottom: 31px; color: var(--tw-copper); font-size: 11px; letter-spacing: .08em; }
.tw-value h3 { margin: 0 0 15px; font: 400 35px/1.1 var(--tw-serif); letter-spacing: -.03em; }
.tw-value p { margin: 0; max-width: 295px; font-size: 14px; line-height: 1.9; color: #686b64; }

/* Services: large numbered chapters rather than a repeated card grid. */
.tw-services-hero { padding-bottom: 0; }
.tw-service-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 62px; padding: 25px 0; border-top: 1px solid var(--tw-line); }
.tw-service-jump a { font-size: 11px; line-height: 1.6; color: #5e645d; transition: color .2s; }
.tw-service-jump a:hover { color: var(--tw-copper); }
.tw-service-detail { background: #fff; scroll-margin-top: 100px; }
.tw-service-detail-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 100px; }
.tw-service-detail-label .tw-section-number { display: block; font: 300 102px/1 var(--tw-serif); color: #c4ac94; letter-spacing: -.07em; margin-bottom: 28px; }
.tw-service-detail-label .tw-eyebrow { max-width: 225px; line-height: 1.7; }
.tw-service-detail h2 { margin: 0 0 25px; font-size: clamp(40px, 4vw, 58px); line-height: 1.05; }
.tw-service-detail-grid > div:last-child > p { max-width: 610px; color: #6a6d66; font-size: 15px; line-height: 1.85; margin: 0 0 20px; }
.tw-service-detail-grid > div:last-child > .tw-lead { color: var(--tw-ink); font-size: 19px; line-height: 1.65; }
.tw-detail-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); list-style: none; padding: 0; gap: 0 28px; margin: 32px 0 34px; }
.tw-detail-list li { padding: 15px 0 15px 20px; border-top: 1px solid var(--tw-line); position: relative; font-size: 12px; line-height: 1.7; }
.tw-detail-list li::before { content: ""; position: absolute; left: 1px; top: 23px; width: 4px; height: 4px; border: 1px solid var(--tw-copper); transform: rotate(45deg); }
.tw-service-detail--tinted { background: #eeebe4; }
.tw-service-detail--dark { background: #272d29; color: #f8f5ed; }
.tw-service-detail--dark .tw-eyebrow { color: #c49a76; }
.tw-service-detail--dark h2, .tw-service-detail--dark .tw-service-detail-grid > div:last-child > .tw-lead { color: #f8f5ed; }
.tw-service-detail--dark h2 em { color: #d1ae8e; }
.tw-service-detail--dark .tw-service-detail-grid > div:last-child > p { color: #c1c6bc; }
.tw-service-detail--dark .tw-detail-list li { border-color: #4a514a; }
.tw-service-detail--dark .tw-detail-list li::before { border-color: #c49a76; }
.tw-service-detail--dark .tw-service-detail-label .tw-section-number { color: #aa8a6d; }
.tw-service-illustration { max-width: 290px; margin-top: 70px; padding: 10px 0 0 12px; }
.tw-browser-shape { min-height: 164px; border: 1px solid #b9a48e; border-radius: 5px; padding: 12px 13px; position: relative; }
.tw-browser-shape::before { content: ""; position: absolute; inset: 15px 15px -16px -15px; border: 1px solid #d4c7b8; border-radius: 5px; z-index: 0; pointer-events: none; }
.tw-browser-shape > span { display: inline-block; width: 4px; height: 4px; border: 1px solid #a99279; border-radius: 50%; margin-right: 3px; vertical-align: top; }
.tw-browser-shape__content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.tw-browser-shape__content i { display: block; grid-column: 1/-1; height: 47px; background: #d7c9b8; }
.tw-browser-shape__content b { display: block; height: 30px; border: 1px solid #d0c3b4; }

/* Contact: one useful form, with identity fields displayed only when configured. */
.tw-contact-hero { padding-bottom: 68px; }
.tw-contact-hero .tw-page-hero-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 65px; }
.tw-contact-hero h1 { font-size: clamp(55px, 5.8vw, 82px); }
.tw-contact-section { padding-top: 12px; }
.tw-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 90px; align-items: start; }
.tw-contact-aside { padding: 52px 10px 0 0; }
.tw-contact-aside h2 { margin: 24px 0; font-size: clamp(38px, 4vw, 54px); }
.tw-contact-aside > p:not(.tw-eyebrow) { font-size: 15px; line-height: 1.9; max-width: 335px; color: #6a6d66; }
.tw-contact-prompts { display: flex; flex-wrap: wrap; gap: 10px; max-width: 355px; margin-top: 32px; }
.tw-contact-prompts > span { font-size: 10px; line-height: 1.5; border: 1px solid #d8d1c5; padding: 9px 11px; color: #716c60; }
.tw-contact-aside::after { content: ""; display: block; width: 110px; height: 110px; margin: 55px 0 0 8px; border: 1px solid #bea181; box-shadow: 18px -18px 0 -1px var(--tw-paper), 18px -18px 0 0 #d8c4af; }
.tw-contact-form-panel { padding: 43px 46px 39px; background: #fff; border-top: 3px solid var(--tw-copper); }
.tw-contact-form-panel > .tw-eyebrow { margin-bottom: 21px; }
.tw-contact-form-panel h2 { font-size: clamp(36px, 3.5vw, 48px); line-height: 1.08; margin: 0 0 33px; }
.tw-contact-details { margin: 33px 0 0; display: grid; gap: 24px; }
.tw-contact-details h3 { margin: 0 0 8px; font: 600 10px/1.5 var(--tw-sans); text-transform: uppercase; letter-spacing: .13em; color: var(--tw-copper); }
.tw-contact-details a, .tw-contact-details p { font-size: 14px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.tw-contact-alternative { padding: 35px 0; background: #ebe7df; }
.tw-contact-alternative > .tw-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.tw-contact-alternative p { margin: 0; font-family: var(--tw-serif); font-size: 30px; }
.tws-contact-form { margin: 0; }
.tws-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 21px; }
.tws-field { min-width: 0; margin: 0 0 24px; }
.tws-field label { display: block; font: 500 11px/1.7 var(--tw-sans); color: #4e554b; margin: 0 0 9px; }
.tws-field label > span { color: var(--tw-copper); }
.tws-field input, .tws-field select, .tws-field textarea { display: block; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #dcded6; border-radius: 0; background: #fafbf7; color: var(--tw-ink); padding: 12px 13px; font: 400 13px/1.6 var(--tw-sans); transition: border-color .2s, background .2s; }
.tws-field input, .tws-field select { min-height: 47px; }
.tws-field textarea { min-height: 144px; resize: vertical; }
.tws-field input:focus, .tws-field select:focus, .tws-field textarea:focus { outline: 2px solid #b8926b; outline-offset: 2px; border-color: #a18364; background: #fff; }
.tws-field [aria-invalid="true"] { border-color: #a24733; }
.tws-field-error { display: block; margin-top: 7px; color: #963d2f; font-size: 11px; line-height: 1.6; }
.tws-contact-form .tws-form-note { font: 400 10px/1.8 var(--tw-sans); color: #777b71; margin: 0 0 20px; }
.tws-contact-form .tws-submit { appearance: none; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 15px 20px; margin: 22px 0 18px; background: var(--tw-ink); color: #fff; border: 1px solid var(--tw-ink); border-radius: 0; cursor: pointer; font: 500 12px/1.5 var(--tw-sans); letter-spacing: .02em; transition: background .2s, border-color .2s; }
.tws-contact-form .tws-submit:hover { background: #8b5c3e; border-color: #8b5c3e; }
.tws-submit > span { font-size: 22px; font-weight: 300; line-height: 1; }
.tws-form-feedback { border: 1px solid #b9c3ac; background: #f0f3ea; color: #3d5235; font-size: 12px; line-height: 1.8; padding: 15px 18px; margin: 0 0 24px; }
.tws-form-feedback p { margin: 7px 0 0; }
.tws-form-error { background: #fbf1ed; border-color: #d8aea2; color: #853e2e; }

@media (max-width: 1100px) {
    .tw-page-hero-grid { gap: 45px; }
    .tw-split-section { gap: 65px; }
    .tw-service-detail-grid { gap: 65px; }
    .tw-contact-grid { gap: 48px; }
    .tw-contact-form-panel { padding: 35px 30px; }
}
@media (max-width: 900px) {
    .tw-page-hero { padding: 62px 0; }
    .tw-page-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
    .tw-page-hero h1 { font-size: clamp(48px, 7.5vw, 67px); }
    .tw-page-hero-grid > p { font-size: 13px; line-height: 1.8; }
    .tw-about-image { height: 365px; }
    .tw-split-section { gap: 42px; }
    .tw-values-grid { margin-top: 40px; }
    .tw-value { padding-left: 22px; padding-right: 22px; }
    .tw-value h3 { font-size: 30px; }
    .tw-value p { font-size: 12px; }
    .tw-services-hero { padding-bottom: 0; }
    .tw-service-jump { gap: 14px; margin-top: 46px; }
    .tw-service-jump a { font-size: 10px; }
    .tw-service-detail-grid { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 38px; }
    .tw-service-detail-label .tw-section-number { font-size: 82px; }
    .tw-service-detail h2 { font-size: 43px; }
    .tw-service-illustration { margin-top: 45px; }
    .tw-detail-list { grid-template-columns: 1fr; }
    .tw-contact-hero .tw-page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .tw-contact-hero .tw-page-hero-grid > p { max-width: 470px; }
    .tw-contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; }
    .tw-contact-aside { padding-top: 35px; }
    .tw-contact-aside h2 { font-size: 39px; }
    .tw-contact-aside > p:not(.tw-eyebrow) { font-size: 13px; }
    .tw-contact-form-panel { padding: 30px 25px; }
    .tw-contact-form-panel h2 { font-size: 35px; }
    .tws-form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
    .tw-page-hero { padding: 43px 0 44px; }
    .tw-page-hero .tw-eyebrow { margin-bottom: 22px; }
    .tw-page-hero-grid { grid-template-columns: 1fr; gap: 23px; }
    .tw-page-hero h1 { font-size: clamp(45px, 12vw, 63px); line-height: 1.04; letter-spacing: -.045em; }
    .tw-page-hero-grid > p { max-width: 100%; font-size: 13px; margin: 0; }
    .tw-page-hero--compact h1 { font-size: 44px; }
    .tw-about-hero { padding-bottom: 37px; }
    .tw-about-image { height: 265px; }
    .tw-about-image > img { object-position: 68% center; }
    .tw-image-caption { left: 20px; right: 20px; bottom: 21px; font-size: 9px; line-height: 1.7; letter-spacing: .1em; }
    .tw-split-section { grid-template-columns: 1fr; gap: 26px; }
    .tw-split-section h2 { margin-bottom: 0; }
    .tw-prose p { font-size: 13px; line-height: 1.85; margin-bottom: 20px; }
    .tw-prose .tw-lead, .tw-lead { font-size: 18px; }
    .tw-values-grid { grid-template-columns: 1fr; margin-top: 35px; }
    .tw-value, .tw-value:first-child, .tw-value:last-child { border-left: 0; border-bottom: 1px solid #d7d1c6; padding: 27px 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 10px 8px; }
    .tw-value > span { margin: 7px 0 0; font-size: 10px; }
    .tw-value h3 { margin: 0; font-size: 31px; }
    .tw-value p { grid-column: 2; max-width: 100%; font-size: 12px; }
    .tw-services-hero { padding-bottom: 0; }
    .tw-service-jump { grid-template-columns: 1fr 1fr; gap: 17px 14px; padding: 22px 0; margin-top: 30px; }
    .tw-service-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .tw-service-detail-label { display: flex; align-items: center; gap: 25px; }
    .tw-service-detail-label .tw-section-number { font-size: 61px; margin: 0; min-width: 83px; }
    .tw-service-detail-label .tw-eyebrow { margin: 0; max-width: 205px; font-size: 9px; }
    .tw-service-detail h2 { font-size: 40px; line-height: 1.05; margin-bottom: 22px; }
    .tw-service-detail-grid > div:last-child > p { font-size: 13px; line-height: 1.85; }
    .tw-service-detail-grid > div:last-child > .tw-lead { font-size: 17px; line-height: 1.65; }
    .tw-detail-list { margin: 25px 0 28px; }
    .tw-detail-list li { font-size: 11px; padding-top: 13px; padding-bottom: 13px; }
    .tw-detail-list li::before { top: 21px; }
    .tw-service-illustration { display: none; }
    .tw-contact-hero .tw-page-hero-grid { gap: 24px; }
    .tw-contact-hero h1 { font-size: clamp(43px, 11.7vw, 59px); }
    .tw-contact-section { padding-top: 0; }
    .tw-contact-grid { grid-template-columns: 1fr; gap: 33px; }
    .tw-contact-aside { padding: 2px 0 0; }
    .tw-contact-aside h2 { font-size: 39px; margin: 19px 0; }
    .tw-contact-aside > p:not(.tw-eyebrow) { max-width: 100%; }
    .tw-contact-prompts { gap: 8px; margin-top: 24px; max-width: 100%; }
    .tw-contact-prompts > span { font-size: 9px; padding: 8px 10px; }
    .tw-contact-aside::after { display: none; }
    .tw-contact-form-panel { padding: 28px 21px 22px; }
    .tw-contact-form-panel h2 { font-size: 35px; margin-bottom: 29px; }
    .tw-contact-form-panel > .tw-eyebrow { font-size: 9px; }
    .tws-field { margin-bottom: 21px; }
    .tws-field input, .tws-field select, .tws-field textarea { font-size: 16px; }
    .tws-field label { font-size: 11px; }
    .tws-contact-form .tws-form-note { font-size: 10px; }
    .tw-contact-alternative { padding: 26px 0 30px; }
    .tw-contact-alternative > .tw-wrap { flex-direction: column; align-items: flex-start; gap: 13px; }
    .tw-contact-alternative p { font-size: 27px; }
}
