/* TIS — Web Applications service page */
:root {
    --tis-purple: #7030A0;
    --tis-purple-dark: #54247c;
    --ink: #17151a;
    --muted: #68636d;
    --line: #ddd8e1;
    --soft: #f7f5f8;
    --dark: #17131b;
    --white: #fff;
}

.wa-hero {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8fb 0%, #f4eef8 58%, #eee4f4 100%);
    border-bottom: 1px solid var(--line);
    padding-top: 110px;
}
.wa-grid {
    position: absolute;
    inset: 0;
    opacity: .48;
    background-image: linear-gradient(rgba(112,48,160,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(112,48,160,.08) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to right, black, transparent 82%);
}
.wa-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr);
    gap: 70px;
    align-items: center;
    min-height: 670px;
}
.wa-hero-copy { max-width: 780px; }
.wa-hero h1 {
    max-width: 850px;
    margin: 18px 0 28px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.2rem,6.2vw,6.8rem);
    line-height: .94;
    letter-spacing: -.055em;
}
.wa-hero h1 em,
h2 em { color: var(--tis-purple); font-style: normal; }
.wa-hero .hero-lead { max-width: 650px; font-size: 1.2rem; line-height: 1.65; color: #57505d; }
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; text-decoration: none; font-weight: 700; border: 1px solid transparent; transition: transform .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--dark); }
.text-link { color: inherit; text-decoration: none; font-weight: 700; }
.text-link span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.system-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.system-window {
    width: min(100%, 560px);
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(112,48,160,.25);
    box-shadow: 0 35px 90px rgba(54,22,72,.16);
    transform: rotate(-2deg);
}
.window-bar { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border-bottom: 1px solid #e7e1e9; font-size: .7rem; color: #77717b; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #bbb5bf; }
.window-bar b { margin-left: auto; color: var(--tis-purple); font-size: .62rem; letter-spacing: .1em; }
.system-body { min-height: 370px; display: flex; }
.system-sidebar { width: 58px; padding: 20px 0; display: flex; align-items: center; flex-direction: column; gap: 24px; border-right: 1px solid #e7e1e9; }
.side-mark { font: 700 .8rem "Space Grotesk"; color: var(--tis-purple); margin-bottom: 18px; }
.system-sidebar i { width: 17px; height: 2px; background: #c7c1ca; }
.system-main { flex: 1; padding: 28px; }
.system-top { display: flex; flex-direction: column; gap: 7px; }
.system-top span { font-size: .62rem; letter-spacing: .14em; color: var(--tis-purple); }
.system-top strong { font: 600 1.55rem "Space Grotesk"; }
.system-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 28px; }
.system-cards div { min-height: 105px; padding: 15px; border: 1px solid #e2dce5; background: #fff; display: flex; flex-direction: column; }
.system-cards small { color: var(--tis-purple); font-size: .62rem; }
.system-cards b { margin-top: 14px; font: 600 1rem "Space Grotesk"; }
.system-cards span { margin-top: 5px; font-size: .68rem; color: #817a84; }
.system-flow { margin-top: 34px; padding: 17px 12px; background: #f4edf7; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .6rem; letter-spacing: .08em; font-weight: 700; color: var(--tis-purple-dark); }
.system-flow i { font-style: normal; font-size: 1rem; }
.visual-tag { position: absolute; font-size: .65rem; letter-spacing: .1em; font-weight: 700; color: var(--tis-purple-dark); background: #fff; padding: 9px 12px; border: 1px solid rgba(112,48,160,.22); box-shadow: 0 12px 30px rgba(54,22,72,.1); }
.tag-one { top: 8%; right: 2%; }
.tag-two { bottom: 9%; left: 2%; }
.wa-hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-bottom: 24px; font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: #77717b; }

.section { padding: 120px 0; }
.split { display: grid; grid-template-columns: .38fr 1fr; gap: 80px; }
.section-marker { font-size: .68rem; letter-spacing: .15em; font-weight: 700; color: var(--tis-purple); padding-top: 10px; }
.wa-intro h2, .custom-fit h2, .business-thinking h2 { font: 600 clamp(2.3rem,4.2vw,4.6rem)/1.03 "Space Grotesk"; letter-spacing: -.04em; margin: 0 0 30px; }
.large-copy { font-size: 1.4rem; line-height: 1.55; color: #4e4852; }
.split > div > p { line-height: 1.75; color: #66606a; }
.statement { margin-top: 35px !important; font: 600 clamp(1.35rem,2.3vw,2rem)/1.3 "Space Grotesk"; color: var(--ink) !important; }
.dark-section { background: var(--dark); color: #fff; }
.section-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; margin-bottom: 65px; }
.section-heading h2 { margin: 12px 0 0; font: 600 clamp(2.5rem,5vw,5.4rem)/.98 "Space Grotesk"; letter-spacing: -.05em; }
.section-heading > p { color: #8f8894; line-height: 1.75; margin: 0; }
.eyebrow { margin: 0; font-size: .68rem; letter-spacing: .16em; font-weight: 700; color: var(--tis-purple); }
.eyebrow.light { color: #cba9dd; }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #3a343e; border-left: 1px solid #3a343e; }
.capability { min-height: 270px; padding: 28px; border-right: 1px solid #3a343e; border-bottom: 1px solid #3a343e; transition: background .25s ease; }
.capability:hover { background: #211b24; }
.capability span, .process-step span, .why-item span, .work-number { font-size: .65rem; color: #a891ad; letter-spacing: .12em; }
.capability h3 { margin: 55px 0 12px; font: 600 1.45rem "Space Grotesk"; }
.capability p, .why-item p { margin: 0; color: #938c97; line-height: 1.7; }
.approach { background: #f7f5f8; }
.process-line { display: grid; grid-template-columns: repeat(5,1fr); position: relative; }
.process-line:before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1px solid #cfc7d3; }
.process-step { position: relative; padding: 48px 25px 0 0; }
.process-step:not(:first-child) { padding-left: 25px; }
.process-step span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--tis-purple); color: #fff; position: absolute; top: 0; z-index: 1; }
.process-step b { display: block; font-size: .68rem; letter-spacing: .1em; color: var(--tis-purple-dark); margin-bottom: 15px; }
.process-step p { margin: 0; color: #6d6670; line-height: 1.65; font-size: .9rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 35px; border-top: 1px solid var(--line); }
.check-list span { padding: 16px 10px 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.check-list span:before { content: "→"; color: var(--tis-purple); margin-right: 10px; }
.work-section { background: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.work-card { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(31,20,37,.1); }
.work-number { display: block; padding: 20px 22px 0; color: var(--tis-purple); }
.work-art { height: 260px; margin: 16px; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.work-art:after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; right: -60px; top: -40px; }
.art-book { background: #241c29; color: #fff; }
.art-job { background: #eee7f2; color: var(--tis-purple-dark); }
.art-news { background: #7030A0; color: #fff; }
.work-art i { font: 600 clamp(2.2rem,4vw,4rem)/.85 "Space Grotesk"; font-style: normal; position: relative; z-index: 1; }
.work-art b { font-size: .7rem; letter-spacing: .15em; position: relative; z-index: 1; margin-top: 15px; }
.work-copy { padding: 5px 24px 28px; }
.work-copy h3 { font: 600 1.45rem "Space Grotesk"; margin: 0 0 10px; }
.work-copy p { color: #6b656d; line-height: 1.65; min-height: 90px; }
.work-copy span { color: var(--tis-purple); font-weight: 700; font-size: .88rem; }
.work-statement { text-align: center; margin: 80px 0 0; font: 600 clamp(2rem,4vw,4rem)/1.05 "Space Grotesk"; letter-spacing: -.04em; }
.work-statement em { color: var(--tis-purple); font-style: normal; }
.requirement { background: #f7f5f8; }
.requirement-box { background: var(--dark); color: #fff; padding: 70px; display: grid; grid-template-columns: 1fr .8fr; gap: 70px; }
.requirement-box h2 { margin: 15px 0 0; font: 600 clamp(2.5rem,5vw,5rem)/1 "Space Grotesk"; letter-spacing: -.05em; }
.requirement-box h2 em { color: #cba9dd; font-style: normal; }
.requirement-questions { border-left: 1px solid #3d3740; display: flex; flex-direction: column; }
.requirement-questions span { padding: 18px 0 18px 28px; border-bottom: 1px solid #3d3740; color: #b8b0bc; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #3a343e; border-left: 1px solid #3a343e; }
.why-item { padding: 28px; min-height: 250px; border-right: 1px solid #3a343e; border-bottom: 1px solid #3a343e; }
.why-item h3 { margin: 65px 0 14px; font: 600 1.3rem/1.15 "Space Grotesk"; }
.faq-section { background: #f7f5f8; }
.faq-layout { display: grid; grid-template-columns: .65fr 1fr; gap: 90px; }
.faq-intro h2 { font: 600 clamp(2.4rem,4.5vw,4.5rem)/1 "Space Grotesk"; letter-spacing: -.045em; margin: 15px 0 25px; }
.faq-intro p { color: #6a646d; line-height: 1.7; }
.faq-list details { border-top: 1px solid #d4cdd7; padding: 24px 0; }
.faq-list details:last-child { border-bottom: 1px solid #d4cdd7; }
.faq-list summary { cursor: pointer; list-style: none; padding-right: 35px; position: relative; font: 600 1.15rem "Space Grotesk"; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--tis-purple); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary:after { content: "−"; }
.faq-list details p { color: #6b656d; line-height: 1.7; max-width: 800px; margin: 18px 0 0; }
.final-cta { background: var(--tis-purple); color: #fff; padding: 130px 0; }
.final-cta-inner { text-align: center; max-width: 900px; }
.final-cta h2 { margin: 16px 0 22px; font: 600 clamp(3rem,6vw,6.5rem)/.94 "Space Grotesk"; letter-spacing: -.055em; }
.final-cta h2 em { color: #dfc7ea; font-style: normal; }
.final-cta p:not(.eyebrow) { color: #e8d9ee; font-size: 1.1rem; margin-bottom: 30px; }
.site-footer { background: #121016; color: #fff; padding: 65px 0 25px; }
.footer-top { display: grid; grid-template-columns: .35fr 1fr .65fr; gap: 60px; align-items: start; }
.footer-brand { color: #fff; text-decoration: none; }
.footer-top > p { color: #938c97; line-height: 1.6; max-width: 500px; margin: 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 16px 25px; justify-content: flex-end; }
.footer-top nav a { color: #d7d1da; text-decoration: none; font-size: .9rem; }
.footer-top nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 20px; border-top: 1px solid #302b33; color: #6f6872; font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
    .wa-hero-inner { grid-template-columns: 1fr; padding: 50px 0 80px; }
    .system-visual { max-width: 680px; width: 100%; justify-self: center; }
    .section-heading, .requirement-box, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .capability-grid { grid-template-columns: repeat(2,1fr); }
    .why-grid { grid-template-columns: repeat(2,1fr); }
    .work-grid { grid-template-columns: 1fr; max-width: 680px; }
    .work-card { display: grid; grid-template-columns: .75fr 1fr; }
    .work-number { grid-column: 1/-1; }
    .work-art { margin-bottom: 0; }
    .work-copy { padding: 25px 24px; }
}
@media (max-width: 760px) {
    .wa-hero { padding-top: 85px; }
    .wa-hero-inner { min-height: auto; gap: 45px; }
    .wa-hero h1 { font-size: clamp(2.8rem,12vw,4.8rem); }
    .wa-hero .hero-lead { font-size: 1.05rem; }
    .hero-actions { flex-wrap: wrap; }
    .system-visual { min-height: 380px; }
    .system-window { transform: none; }
    .system-body { min-height: 300px; }
    .system-cards { grid-template-columns: 1fr; }
    .system-cards div { min-height: auto; }
    .system-flow { display: none; }
    .tag-one { right: 0; top: 0; }
    .tag-two { left: 0; bottom: 0; }
    .wa-hero-bottom { font-size: .57rem; }
    .wa-hero-bottom span:last-child { display: none; }
    .section { padding: 80px 0; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .section-marker { padding-top: 0; }
    .capability-grid, .why-grid { grid-template-columns: 1fr; }
    .capability { min-height: auto; padding: 25px; }
    .capability h3 { margin-top: 40px; }
    .process-line { grid-template-columns: 1fr; gap: 30px; }
    .process-line:before { display: none; }
    .process-step, .process-step:not(:first-child) { padding: 0 0 0 45px; }
    .process-step span { left: 0; }
    .check-list { grid-template-columns: 1fr; }
    .work-card { display: block; }
    .work-art { margin-bottom: 16px; }
    .work-copy p { min-height: 0; }
    .requirement-box { padding: 40px 25px; }
    .requirement-questions { border-left: 0; }
    .requirement-questions span { padding-left: 0; }
    .faq-layout { gap: 45px; }
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
    .footer-top nav { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; gap: 10px; margin-top: 40px; }
}


/* TIS site-shell alignment and related case study */
.art-compliance { background: linear-gradient(135deg, #7030A0, #3b2348); color: #fff; }
#primary-navigation a.active { color: var(--p); }
.service-page-link { display: inline-flex; margin-top: 14px; color: var(--tis-purple); font-weight: 700; }
.service-page-link[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
