/* KhalsaCore — responsive, dependency-free homepage. */
:root {
  color-scheme: dark;
  --bg: #050908;
  --panel: #0a100e;
  --text: #f4f6f5;
  --muted: #b9c3be;
  --subtle: #899b92;
  --green: #32df9a;
  --green-dark: #0aad6b;
  --line: #25392f;
  --max-width: 1320px;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 114px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
body.has-modal { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
img { max-width: 100%; display: block; }
button, h1, h2, h3, p { margin: 0; }
p { line-height: 1.6; }
::selection { background: #247c55; color: #fff; }
:focus-visible { outline: 3px solid #76f5be; outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(var(--max-width), calc(100% - 112px)); margin-inline: auto; }
.icon-definitions { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; background: var(--green); color: #022a19; z-index: 100; padding: 14px; border-radius: 5px; }
.skip-link:focus { top: 16px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; color: var(--green); }
.section-line { border-top: 1px solid var(--line); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 102px; gap: 40px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 259px; height: auto; }
.primary-navigation { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 35px); }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; background: none; font-size: 11px; font-weight: 550; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; transition: color .18s ease; }
.nav-link::after { content: ""; height: 2px; position: absolute; bottom: 4px; left: 0; right: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.nav-link.is-active::after { transform: scaleX(1); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 52px; padding: 14px 22px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; line-height: 1.35; letter-spacing: .035em; font-weight: 700; text-transform: uppercase; text-align: center; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #032d1b; background: linear-gradient(120deg, #36e293, #19ca80); border-color: #24d28a; }
.button-primary:hover { background: #54edaa; box-shadow: 0 0 28px #1bdf8220; }
.button-secondary { color: var(--text); border-color: #91a499; background: #060b09a8; }
.button-secondary:hover { background: #12261c; border-color: var(--green); }
.button-outline { color: var(--green); border-color: #26c27d; background: transparent; }
.button-outline:hover { background: #102b1e; }
.header-cta { margin-left: 28px; min-height: 43px; padding: 10px 17px; }
.menu-toggle { display: none; min-width: 46px; min-height: 46px; align-items: center; justify-content: center; background: #0c1811; border: 1px solid var(--line); border-radius: 6px; }

/* Hero — actual text and controls, not a flattened screenshot. */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 82% 60%, #16281a77, transparent 57%), #040806; }
.hero-inner { display: grid; grid-template-columns: 46% 54%; position: relative; min-height: 690px; }
.hero-copy { position: relative; z-index: 2; padding: 60px 0 42px; }
.hero-eyebrow { color: #d4ddd8; font-size: 10px; letter-spacing: .26em; margin-bottom: 22px; display: flex; gap: 20px; }
h1 { font-size: clamp(49px, 5.25vw, 77px); line-height: 1.005; font-weight: 650; letter-spacing: -.055em; }
h1 > span { color: var(--green); }
.hero-description { margin-top: 23px; max-width: 430px; padding-right: 20px; font-size: 16px; line-height: 1.6; color: #d3dcd6; }
.button-row { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 29px; }
.hero-signature { margin-top: 39px; font-size: 9px; letter-spacing: .29em; text-transform: uppercase; color: #c4cfc8; }
.signature-line { display: block; width: 30px; height: 2px; background: var(--green); margin-bottom: 15px; }
.hero-visual { position: relative; align-self: stretch; margin-right: -56px; margin-left: -15px; min-width: 0; }
.hero-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #040806 0%, transparent 15%), linear-gradient(0deg, #04080638, transparent 24%); pointer-events: none; }
.monitor-original { position: absolute; left: 26%; top: 9%; width: 50%; height: 39%; display: flex; align-items: center; justify-content: center; background: #000; box-shadow: 0 0 18px 15px #000; border-radius: 12px; }
.monitor-original img { width: 100%; height: auto; }
.image-label { position: absolute; bottom: 18px; right: 20px; z-index: 2; color: #c1cdc6; background: #050908bf; border: 1px solid #5b6b5e; border-radius: 3px; font-size: 9px; letter-spacing: .14em; padding: 5px 8px; text-transform: uppercase; }

/* Three services */
.services { padding: 32px 0 40px; background: linear-gradient(135deg, #050a07, #070d0a); }
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-intro .eyebrow { font-size: 10px; }
.section-note { font-size: 12px; color: var(--subtle); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { padding: 31px 28px 22px; text-align: center; border: 1px solid #2c4437; border-radius: var(--radius); background: radial-gradient(ellipse at top, #15302140, transparent 75%); display: flex; flex-direction: column; align-items: center; }
.service-icon { width: 47px; height: 47px; color: var(--green); stroke-width: 1.5; margin-bottom: 22px; }
.service-card h3 { font-size: 14px; letter-spacing: .035em; line-height: 1.45; text-transform: uppercase; font-weight: 650; }
.service-card p { margin-top: 12px; max-width: 295px; font-size: 14px; color: var(--muted); flex: 1; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 2px; min-height: 44px; margin-top: 10px; color: var(--green); background: none; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link .icon { width: 16px; height: 16px; }

/* Work examples */
.work { padding: 46px 0; background: linear-gradient(115deg, #040806, #0a120d); }
.work-layout { display: grid; grid-template-columns: 1fr 2.5fr; gap: 38px; align-items: center; }
.work-intro h2 { font-size: clamp(28px, 3.0vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 620; margin-top: 13px; }
.work-intro > p:not(.eyebrow) { margin-top: 14px; font-size: 14px; color: var(--muted); }
.work-intro .concept-note { font-size: 11px !important; line-height: 1.5; color: #9fada5 !important; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.project-card { padding: 0; min-width: 0; background: none; display: block; text-align: left; border-radius: 5px; }
.project-image { display: block; overflow: hidden; border-radius: 7px; border: 1px solid #34433a; background: #070c09; }
.project-image img { width: 100%; height: auto; aspect-ratio: 222/168; object-fit: cover; transition: transform .28s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 13px; font-weight: 600; margin-top: 17px; }
.project-title .icon { width: 14px; color: var(--green); }
.project-description { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; line-height: 1.55; }
.project-tag { display: inline-block; color: #a5beb0; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; margin-top: 13px; }

/* Closing CTA */
.contact { position: relative; isolation: isolate; padding: 49px 0 53px; background: #06120d; overflow: hidden; }
.contact::before { position: absolute; content: ""; inset: 0; z-index: -2; background: url("../marketing/mountain-background.webp") center 43%/cover; opacity: .55; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #03110ae6, #03110aa3 57%, #03110a38); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; margin-top: 11px; }
.contact p:not(.eyebrow) { font-size: 14px; line-height: 1.65; color: #d8e3dc; margin-top: 14px; }
.contact-button { min-width: 254px; min-height: 57px; }

/* Footer */
.site-footer { padding: 35px 0 22px; background: #000; }
.footer-main { display: grid; grid-template-columns: 1.65fr .75fr .9fr 1fr; gap: 35px; align-items: start; }
.footer-brand img { width: 300px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; padding-top: 9px; gap: 3px; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; color: #c5d1c9; padding: 3px 0; background: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--green); }
.footer-message { border-left: 1px solid #536158; padding: 8px 0 0 35px; min-height: 118px; }
.footer-message p { font-size: 13px; color: #d2dbd5; line-height: 1.6; }
.footer-message .signature-line { margin: 16px 0 12px; }
.footer-caption { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #adc0b3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: #9aaa9f; margin-top: 32px; font-size: 10px; }
.footer-bottom p:last-child { letter-spacing: .03em; }

/* Native dialogs keep focus inside while open; Escape closes them. */
.modal { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 39px; border: 1px solid #456653; border-radius: 12px; background: #0b1510; color: var(--text); box-shadow: 0 22px 120px #000b; overscroll-behavior: contain; }
.modal::backdrop { background: #010805df; backdrop-filter: blur(8px); }
.modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; background: #17291e; border-radius: 50%; }
.modal-close:hover { background: #244432; }
.modal h2 { margin-top: 14px; padding-right: 15px; font-size: 33px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.modal h2:focus { outline: none; }
.details-body { color: #ccd8d0; font-size: 15px; line-height: 1.6; margin-top: 22px; }
.details-body p + p { margin-top: 15px; }
.details-body ul { margin: 18px 0; padding-left: 20px; }
.details-body li { margin: 8px 0; padding-left: 3px; }
.details-body li::marker { color: var(--green); }
.details-image { margin-top: 23px; width: 100%; height: 240px; object-fit: contain; background: #020604; border: 1px solid var(--line); border-radius: 8px; }
#details-project { margin-top: 24px; }
.form-intro { margin-top: 14px; font-size: 14px; color: var(--muted); }
.preview-notice { margin-top: 19px; font-size: 12px; color: #cadacf; background: #14261b; border-left: 2px solid var(--green); padding: 12px 14px; line-height: 1.6; }
#project-form { margin-top: 23px; }
#project-form label { display: block; margin-top: 17px; font-size: 12px; font-weight: 600; color: #d8e2db; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { margin-top: 0 !important; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; color: var(--text); background: #050b07; border: 1px solid #3f5547; border-radius: 5px; font-size: 16px; padding: 12px; font-weight: 400; }
input, select { min-height: 47px; }
input::placeholder, textarea::placeholder { color: #91a397; opacity: 1; }
textarea { resize: vertical; min-height: 112px; }
.optional { color: #a2b1a7; font-weight: 400; }
.form-submit { margin-top: 22px; width: 100%; }
.form-status { min-height: 22px; color: var(--green); font-size: 12px; margin-top: 12px; }
.noscript-notice { padding: 20px; text-align: center; background: #12351f; }

@media (min-width: 1550px) {
  .hero-visual { margin-right: calc((1320px - 100vw)/2); }
}
@media (max-width: 1180px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 20px; min-height: 91px; }
  .brand img { width: 225px; }
  .primary-navigation { gap: 18px; }
  .header-cta { margin-left: 6px; padding: 10px 12px; font-size: 10px; }
  .hero-inner { min-height: 610px; grid-template-columns: 46% 54%; }
  .hero-copy { padding-top: 45px; }
  .hero-visual { margin-right: -36px; }
  .hero-description { font-size: 14px; max-width: 350px; }
  .hero-eyebrow { font-size: 9px; gap: 14px; letter-spacing: .18em; }
  .button-row { gap: 10px; }
  .button-row .button { font-size: 10px; padding: 13px; gap: 8px; }
  .hero-signature { margin-top: 27px; }
  .service-card { padding-inline: 20px; }
  .service-card h3 { font-size: 12px; }
  .service-card p { font-size: 13px; }
  .work-layout { gap: 26px; grid-template-columns: 1fr 2.35fr; }
  .project-grid { gap: 13px; }
  .project-title { font-size: 12px; }
  .footer-main { gap: 22px; grid-template-columns: 1.4fr .7fr 1fr 1fr; }
  .footer-brand img { width: 265px; }
  .footer-message { padding-left: 22px; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 86px; }
  .site-header { position: sticky; }
  .header-inner { min-height: 80px; }
  .brand img { width: 207px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 18px 36px 26px; border-bottom: 1px solid var(--line); background: #07100a; flex-direction: column; align-items: stretch; gap: 5px; box-shadow: 0 20px 28px #0006; }
  .primary-navigation.is-open { display: flex; }
  .nav-link { min-height: 46px; justify-content: flex-start; font-size: 12px; }
  .nav-link::after { right: auto; width: 32px; }
  .header-cta { margin: 10px 0 0; min-height: 48px; align-self: flex-start; }
  .hero-inner { grid-template-columns: 48% 52%; min-height: 586px; }
  h1 { font-size: clamp(46px, 6.3vw, 61px); }
  .hero-copy { padding-top: 43px; }
  .hero-photo { object-position: 45% center; }
  .monitor-original { left: 20%; width: 57%; top: 10%; }
  .hero-description { max-width: 355px; }
  .button-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .button-row .button { min-width: 210px; }
  .hero-signature { display: none; }
  .service-grid { gap: 14px; }
  .service-card { padding: 26px 15px 17px; }
  .service-card h3 { max-width: 205px; }
  .section-note { display: none; }
  .work-layout { grid-template-columns: 1fr; gap: 26px; }
  .work-intro h2 br { display: none; }
  .work-intro > p:not(.eyebrow) { max-width: 560px; }
  .work-intro .text-link { margin-top: 3px; }
  .project-title { font-size: 13px; }
  .contact h2 { font-size: 32px; }
  .contact-button { min-width: 214px; }
  .footer-main { grid-template-columns: 1.4fr .75fr .9fr; }
  .footer-message { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); min-height: auto; padding: 20px 0 0; display: flex; justify-content: space-between; align-items: center; }
  .footer-message p br { display: none; }
  .footer-message .signature-line { display: none; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  html { scroll-padding-top: 80px; }
  .header-inner { min-height: 76px; }
  .brand img { width: 190px; }
  .primary-navigation { padding-inline: 20px; }
  .hero-inner { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { padding: 39px 0 30px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .14em; gap: 17px; margin-bottom: 20px; }
  h1 { font-size: clamp(46px, 11.8vw, 72px); line-height: 1.02; letter-spacing: -.05em; }
  .hero-description { max-width: 510px; padding: 0; margin-top: 20px; font-size: 15px; }
  .button-row { flex-direction: row; gap: 12px; margin-top: 24px; }
  .button-row .button { min-width: 0; min-height: 51px; padding: 13px 14px; font-size: 10px; }
  .hero-visual { width: calc(100% + 40px); margin: 0 -20px; align-self: auto; aspect-ratio: 579/490; }
  .hero-photo { object-fit: cover; object-position: center; }
  .hero-visual::after { background: linear-gradient(180deg, #040806 0%, transparent 13%), linear-gradient(0deg, #04080655, transparent 20%); }
  .monitor-original { left: 28%; top: 11%; width: 46%; height: 35%; }
  .services { padding: 28px 0 32px; }
  .section-intro { margin-bottom: 21px; }
  .section-intro .eyebrow { font-size: 9px; letter-spacing: .15em; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 25px 24px 14px; }
  .service-icon { margin-bottom: 16px; width: 39px; height: 39px; }
  .service-card h3 { max-width: none; font-size: 13px; }
  .service-card p { max-width: 380px; font-size: 14px; }
  .text-link { margin-top: 6px; }
  .work { padding: 35px 0; }
  .work-intro h2 { font-size: 34px; margin-top: 11px; }
  .project-grid { grid-template-columns: 1fr; gap: 27px; }
  .project-image img { aspect-ratio: 1.6; object-fit: contain; }
  .project-title { font-size: 15px; margin-top: 13px; }
  .project-description { font-size: 12px; }
  .project-tag { margin-top: 9px; }
  .contact { padding: 36px 0; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact h2 { font-size: 32px; }
  .contact p:not(.eyebrow) { font-size: 14px; }
  .contact-button { min-width: 0; min-height: 52px; }
  .desktop-break { display: none; }
  .site-footer { padding: 23px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 17px 32px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-brand img { width: 260px; }
  .footer-links { padding: 0; gap: 2px; }
  .footer-links a, .footer-links button { min-height: 44px; font-size: 13px; }
  .footer-message { margin-top: 5px; padding-top: 20px; gap: 10px; }
  .footer-message p { font-size: 12px; }
  .footer-caption { font-size: 8px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 22px; }
  .modal { padding: 31px 22px 23px; max-height: calc(100dvh - 24px); }
  .modal h2 { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
}
@media (max-width: 370px) {
  .hero-eyebrow { gap: 12px; font-size: 8px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; }
  h1 { font-size: 44px; }
  .footer-message { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@media print {
  .site-header { position: static; }
  .menu-toggle, dialog, .hero-visual, .button-row, .contact-button, .text-link, .header-cta { display: none !important; }
  .container { width: 95%; }
  .hero-inner { display: block; min-height: auto; }
  .hero-copy { padding: 25px 0; }
  h1 { font-size: 36px; }
  .service-grid { grid-template-columns: repeat(3,1fr); }
  .service-card { break-inside: avoid; }
}

/* Keep WordPress toolbar clear of the fixed navigation. */
.admin-bar .site-header { top:32px; }
@media(max-width:782px){.admin-bar .site-header{top:46px;}}
