/* TechNoisi — layout and look carried over from the Wix site. */
:root {
	--tn-navy: #1a2a5b;
	--tn-navy-deep: #142046;
	--tn-gold: #b8975a;
	--tn-gold-bright: #f0b45a;
	--tn-lilac: #ede6ee;
	--tn-lavender: #efeef8;
	--tn-ink: #1a1d29;
	--tn-text: #2b2f3a;
	--tn-grey: #5a6072;
	--tn-case: #151c58;
	--tn-wrap: 1240px;
	--tn-font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--tn-text); font-family: var(--tn-font); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--tn-navy); }
a:hover { color: var(--tn-navy-deep); }
:focus-visible { outline: 3px solid var(--tn-gold-bright); outline-offset: 2px; }

.tn-wrap { max-width: var(--tn-wrap); margin: 0 auto; padding: 0 24px; }
.tn-skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--tn-navy); padding: 8px 14px; z-index: 10; }
.tn-skip:focus { left: 8px; }

/* Header */
.tn-header { background: var(--tn-navy); color: #fff; }
.tn-header .tn-wrap { padding-top: 22px; padding-bottom: 14px; }
.tn-logo { display: block; width: min(380px, 80%); margin: 0 auto 10px; }
.tn-logo img { display: block; width: 100%; height: auto; }
.tn-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.tn-nav ul, .tn-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tn-nav ul { gap: 4px 34px; }
.tn-nav a { display: inline-block; padding: 12px 0; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.tn-nav a:hover { color: var(--tn-gold); }
.tn-nav a[aria-current="page"] { color: var(--tn-gold); }
.tn-langs ul { gap: 2px; }
.tn-langs a { display: inline-block; min-width: 44px; padding: 10px 8px; text-align: center; color: #d5dae8; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.tn-langs a:hover { color: #fff; }
.tn-langs a[aria-current="true"] { color: var(--tn-gold); }

/* Page body */
.tn-main { display: block; }
.tn-content { max-width: var(--tn-wrap); margin: 0 auto; padding: 32px 24px 56px; }
.tn-content > * + * { margin-top: 1.1em; }
.tn-content h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--tn-ink); margin: .3em 0 .4em; font-weight: 700; }
.tn-content h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; color: var(--tn-navy); margin: 1.6em 0 .6em; font-weight: 700; }
.tn-content h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; color: var(--tn-navy); margin: 1.4em 0 .4em; font-weight: 700; }
.tn-content p { margin: 0 0 .8em; }
.tn-lead { font-size: 20px; }
.tn-center { text-align: center; }
.tn-hint { color: var(--tn-grey); font-weight: 600; }

/* Home: hero */
.tn-hero { min-height: clamp(260px, 34vw, 470px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #050816 url(../img/hero.jpg) center / cover no-repeat; margin-top: 0 !important; }
.tn-hero .tn-hero-title { color: #fff; text-align: center; margin: 0; font-size: clamp(28px, 3.6vw, 44px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }

/* Home: experience + logos */
.tn-experience { padding: 8px 0 12px; }
.tn-experience h2 { margin-top: 1em; }
.tn-experience p { margin: 0 0 .3em; }
.tn-logos { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: center; }
.tn-logos li { display: flex; justify-content: center; }
.tn-logos img { max-height: 64px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .62; }

/* Home: lilac panel */
.tn-panel { background: var(--tn-lilac); padding: 20px 20px 26px; margin-top: 40px !important; }
.tn-panel h2 { margin-top: .3em; }
.tn-underline::after { content: ""; display: block; width: 88px; height: 6px; background: var(--tn-navy); margin: 8px auto 0; }
.tn-about-list { margin: 18px 0 22px; padding-left: 26px; font-size: 20px; }
.tn-about-list li + li { margin-top: 18px; }
.tn-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tn-card { background: #fff; border-radius: 14px; padding: 18px 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.tn-card h3 { margin: 0; font-size: 20px; line-height: 1.35; color: var(--tn-ink); min-height: 3.9em; }
.tn-card-logo { height: 48px; display: flex; align-items: center; }
.tn-plogo { height: 32px; width: auto; }
.tn-plogo-oracle { height: 24px; }
.tn-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; background: var(--tn-navy); color: #fff !important; text-decoration: none; border-radius: 4px; letter-spacing: .04em; font-size: 16px; margin-top: auto; }
.tn-button:hover { background: var(--tn-navy-deep); }

/* Expertise: profile + tables */
.tn-profile { display: flex; gap: 22px; align-items: flex-start; }
.tn-profile .wp-block-column { min-width: 0; }
.tn-portrait img { display: block; width: 100%; background: #ddd; }
.tn-profile p { font-size: 20px; line-height: 1.7; }
.tn-table { margin: 0; overflow-x: auto; }
.tn-table table { width: 100%; border-collapse: collapse; font-size: 18px; }
.tn-table th { background: var(--tn-navy); color: #fff; text-align: left; font-weight: 700; padding: 18px 12px; }
.tn-table td { border: 1px solid var(--tn-navy); padding: 16px 12px; vertical-align: middle; }
.tn-table td:nth-child(2), .tn-table th:nth-child(2) { width: 50%; }
.tn-table td:nth-child(2) { background: var(--tn-lavender); }
.wp-block-table.tn-table thead { border-bottom: 0; }

/* Projects: engagements table */
.tn-eng-table { width: 100%; border-collapse: collapse; background: var(--tn-navy); color: #fff; margin: 6px 0 32px; font-size: 20px; }
.tn-eng-table th { text-align: left; padding: 16px 40px; font-weight: 700; font-size: 22px; border-bottom: 2px solid var(--tn-gold); }
.tn-eng-table td { padding: 0 40px; border-top: 1px solid var(--tn-gold); }
.tn-eng-table tbody tr { cursor: pointer; }
.tn-eng-table tbody tr:hover, .tn-eng-table tbody tr.is-active { background: #24376f; }
.tn-eng-table button { font: inherit; color: inherit; background: none; border: 0; padding: 18px 0; cursor: pointer; text-align: left; width: 100%; }
.tn-case-wrap { border: 2px solid var(--tn-gold); background: #f4f4f4; padding: 22px 18px 18px; }
.tn-case-wrap[hidden] { display: none; }
.tn-case-platform { margin: 0 0 .4em !important; color: var(--tn-navy); font-size: 28px; }
.tn-case-wrap-sub { margin: 0 0 18px; }

/* Case study block */
.tn-case { background: radial-gradient(ellipse at 85% 0%, #2a2f8a 0%, transparent 55%), var(--tn-case); color: #fff; padding: 30px 26px 30px; border-radius: 4px; }
.tn-case-title { margin: 0 !important; color: #fff !important; font-size: clamp(22px, 2.6vw, 32px) !important; font-weight: 400 !important; line-height: 1.25; }
.tn-case-title strong { font-weight: 700; }
.tn-case-sub { display: flex; align-items: center; gap: 18px; color: var(--tn-gold-bright); font-size: clamp(18px, 2vw, 26px); margin: 10px 0 24px; }
.tn-case-sub::after { content: ""; flex: 1; height: 1px; background: var(--tn-gold-bright); opacity: .8; }
.tn-case-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tn-col { background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 22px 22px 18px; }
.tn-col .tn-icon { display: block; margin: 0 auto 6px; color: var(--tn-gold-bright); width: 54px; height: 54px; }
.tn-col h3, .tn-col h4 { color: #fff !important; text-align: center; font-size: 25px !important; font-weight: 600; margin: 0 0 18px !important; padding-bottom: 14px; border-bottom: 1px solid rgba(240, 180, 90, .7); }
.tn-col p { font-size: 17px; line-height: 1.5; color: #e6e8f2; }
.tn-col ul { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.5; color: #e6e8f2; }
.tn-col li { position: relative; padding-left: 20px; margin-bottom: 14px; }
.tn-col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--tn-gold-bright); }
.tn-col-results li { padding-left: 0; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tn-col-results li:last-child { border-bottom: 0; }
.tn-col-results li::before { display: none; }
.tn-col-results strong { display: block; color: var(--tn-gold-bright); font-size: 19px; font-weight: 600; }
.tn-col-results span { display: block; }
.tn-back { margin-bottom: 8px; }

/* Footer */
.tn-footer { background: var(--tn-navy); color: #fff; }
.tn-footer .tn-wrap { padding-top: 22px; padding-bottom: 22px; }
.tn-footer-name { margin: 0 0 18px; font-size: 18px; color: #d5dae8; line-height: 1.45; }
.tn-footer-name strong { color: #fff; font-size: 19px; }
.tn-footer-copy { margin: 0; font-size: 22px; }

/* Smaller screens */
@media (max-width: 1000px) {
	.tn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tn-case-cols { grid-template-columns: 1fr; }
	.tn-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	body { font-size: 17px; }
	.tn-profile { flex-direction: column; }
	.tn-profile .wp-block-column { flex-basis: 100% !important; }
	.tn-about-list, .tn-profile p, .tn-lead { font-size: 18px; }
	.tn-eng-table th, .tn-eng-table td { padding-left: 16px; padding-right: 16px; }
	.tn-eng-table { font-size: 17px; }
	.tn-nav ul { gap: 4px 22px; }
}
@media (max-width: 520px) {
	.tn-cards { grid-template-columns: 1fr; }
	.tn-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tn-card h3 { min-height: 0; }
	.tn-case { padding: 22px 16px; }
}
