/* =========================================================
   CONSTRAINT WEBSITE - MAIN STYLE FILE (v11: navy + orange, from the logo)
   Colors and fonts: section 1. Everything else controls layout.
   ========================================================= */
:root {
  /* ===== BRAND COLORS (taken from the logo) ===== */
  --navy: #02407C;        /* logo blue */
  --navy-dark: #032F5E;   /* big blue blocks (hero panel, Why band, contact) */
  --navy-deep: #021F40;   /* footer, dark bands */
  --brand: #FC6A0A;       /* logo orange: buttons, lines, highlights */
  --brand-dark: #DF5800;  /* orange on hover */
  --brand-soft: #FFF0E4;  /* pale orange tint */
  --accent: #B84500;      /* dark orange for small text on white */
  --bg: #FFFFFF;
  --bg-soft: #F0F4F9;
  --text: #0B1D33;
  --muted: #4A5B72;
  --line: #D2DBE7;
  --dark: var(--navy-deep);
  --on-dark: #B8C7DA;
  --grid: rgba(2,64,124,.075);
  --font-head: 'Barlow Semi Condensed', 'Barlow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); box-shadow: 0 0 0 6px var(--brand); outline-offset: 3px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { font-size: clamp(30px, 4vw, 46px); }
.lead { color: var(--muted); font-size: 19px; max-width: 680px; }
.s-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 52px; }
.s-head p { color: var(--muted); margin: 0; }
.s-head .section-title { margin: 0; }
.s-head .section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--brand); margin-top: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 0; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--brand); cursor: pointer; transition: .2s; }
.btn-primary { background: var(--brand); color: var(--navy-deep); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-light:hover { background: var(--navy); color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.link-arrow { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.link-arrow::after { content: " →"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--brand); box-shadow: 0 4px 18px rgba(2,31,64,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 11px 22px; color: var(--navy-deep); }
.nav .btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* hero slider */
.hero-slider { display: grid; position: relative; color: var(--text); overflow: hidden; background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; }
.slide { isolation: isolate; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; position: relative; min-height: 640px; display: flex; align-items: center; }
.slide.on { opacity: 1; visibility: visible; }
.slide::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: var(--navy-dark); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.slide-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 90px; }
.slide h1, .slide h2 { font-size: clamp(38px, 5.6vw, 70px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 22px; text-transform: none; }
.slide h1 span, .slide h2 span { color: #fff; background: var(--navy); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.slide p { color: #2B3C52; font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.slide-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.dots { position: absolute; left: 0; right: 0; bottom: 30px; }
.dots .container { display: flex; gap: 10px; }
.dot { width: 46px; height: 5px; border: 0; padding: 0; background: rgba(2,64,124,.22); cursor: pointer; }
.dot.on { background: var(--brand); }

/* intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro p { color: var(--muted); }
.intro .btn { margin-top: 14px; }
.intro-img { background-color: var(--bg-soft); padding: 40px; border: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.intro-img img { margin: 0 auto; max-height: 360px; object-fit: contain; }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc > div { padding: 34px 30px 36px 0; margin-right: 30px; border-right: 1px solid var(--line); }
.svc > div:last-child { border-right: 0; margin-right: 0; }
.svc .n { font-family: var(--font-mono); font-weight: 800; font-size: 14px; color: var(--accent); display: block; margin-bottom: 18px; }
.svc h3 { font-size: 21px; }
.svc p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }

/* why */
.why { background: var(--navy-dark); color: #fff; }
.why .s-head p { color: var(--on-dark); }
.why .section-title, .why h3 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.why-grid div { border-top: 4px solid var(--brand); padding-top: 20px; }
.why-grid h3 { font-size: 19px; }
.why-grid p { color: #D3DDEA; font-size: 17px; margin: 0; }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 0 0 40px; border-bottom: 1px solid var(--line); }
.filter-btn { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 0; color: var(--muted); font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { color: var(--text); border-bottom-color: var(--brand); }
.grid { display: grid; gap: 34px 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; color: var(--text); }
.card .thumb { aspect-ratio: 4 / 3; background-color: var(--bg-soft); border: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; display: grid; place-items: center; padding: 22px; border-bottom: 4px solid transparent; transition: .25s; }
.card:hover .thumb { border-bottom-color: var(--brand); }
.card .thumb img { max-height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 16px 0 0; }
.card .tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 21px; margin: 4px 0 0; color: var(--text); }
.card p { display: none; }
.card.hide { display: none; }

/* process */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.step .num { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; color: var(--brand); -webkit-text-stroke: 1.5px var(--navy); display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* insights + tools */
.post { display: block; max-width: 760px; border-left: 4px solid var(--brand); padding: 6px 0 6px 26px; color: var(--text); }
.post small { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 26px; margin: 8px 0 8px; }
.post p { color: var(--muted); margin: 0 0 12px; }
.tools { background: var(--bg-soft); padding: 40px 0; }
.tools .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.tools h4 { font-family: var(--font-mono); margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tools span { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #5E7089; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; }
.contact-info { background: var(--navy-dark); color: #fff; padding: 80px 56px 80px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.contact-info h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.contact-info p { font-size: 19px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.contact-info a { color: #fff; font-weight: 600; text-decoration: underline; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { border: 2px solid rgba(255,255,255,.7); padding: 6px 14px; text-decoration: none; font-size: 14px; }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: var(--navy-deep); }
.form-box { padding: 80px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 80px 56px; background: #fff; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
form input, form select, form textarea { width: 100%; background: #fff; color: var(--text); border: 1px solid #B3C0D2; border-radius: 0; padding: 12px 14px; font: inherit; margin-bottom: 16px; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--navy); box-shadow: 4px 4px 0 var(--brand); outline: 0; }
form textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }

/* project & blog detail pages */
.page-head { padding: 64px 0 30px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); }
.back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
.eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; padding-bottom: 80px; }
.detail .image-box { background-color: var(--bg-soft); padding: 30px; border: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); }
.article { max-width: 760px; padding-bottom: 80px; }
.article h2 { font-size: 24px; margin-top: 1.6em; }
.article p, .article li { color: #2A394D; }
.post-meta { color: var(--muted); font-size: 15px; }

/* footer */
.site-footer { background: var(--dark); border-top: 4px solid var(--brand); padding: 64px 0 26px; color: var(--on-dark); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-grid img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--on-dark); padding: 3px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { margin: 0 0 10px; max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #17406E; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.footer-bottom a { color: var(--on-dark); margin-left: 18px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* mobile */
@media (max-width: 960px) {
  .s-head, .intro, .detail, .contact, .slide-in { grid-template-columns: 1fr; gap: 28px; }
  .svc, .why-grid, .proc { grid-template-columns: 1fr 1fr; }
  .svc > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide::before { width: 100%; height: 38%; top: auto; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
    .contact-info, .form-box { padding: 56px 24px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; background: #fff; border-bottom: 4px solid var(--brand); box-shadow: 0 14px 24px rgba(2,31,64,.12); }
  .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .svc, .why-grid, .proc, .grid-3, form .row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .slide { min-height: 600px; }
}

/* ===== v5.1: projects page, autocad tools page, home promo ===== */
.nav a.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--brand); padding-bottom: 4px; }
.filter-btn { text-decoration: none; display: inline-block; }
a.filter-btn:hover { color: var(--text); border-bottom-color: var(--brand); }
span.filter-btn { cursor: default; }

.promo { background: var(--navy-deep); color: #fff; padding: 70px 0; border-top: 4px solid var(--brand); }
.promo-in { display: flex; align-items: center; justify-content: space-between; gap: 30px 50px; flex-wrap: wrap; }
.promo .eyebrow { color: var(--brand); }
.promo h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.promo h2 span { color: var(--brand); }
.promo p { color: var(--on-dark); max-width: 640px; margin: 0; }
.promo .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }

.tool-list { border-top: 1px solid var(--line); margin-bottom: 80px; }
details.tool { border-bottom: 1px solid var(--line); background: #fff; }
details.tool[open] { background: var(--brand-soft); }
details.tool summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto 36px; gap: 18px; align-items: center; padding: 24px 12px; }
details.tool summary::-webkit-details-marker { display: none; }
details.tool summary:hover { background: var(--bg-soft); }
details.tool[open] summary:hover { background: transparent; }
.t-n { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent); }
.t-main strong { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.15; }
.t-main small { display: block; color: var(--muted); font-size: 16px; margin-top: 4px; }
.t-price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; background: var(--brand); color: var(--navy-deep); padding: 6px 12px; white-space: nowrap; }
.t-toggle { width: 32px; height: 32px; border: 2px solid var(--navy); position: relative; }
.t-toggle::before, .t-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy); transform: translate(-50%, -50%); }
.t-toggle::before { width: 14px; height: 2px; }
.t-toggle::after { width: 2px; height: 14px; }
details.tool[open] .t-toggle::after { display: none; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 6px 12px 34px 86px; }
.tool-body h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
ul.ticks li { position: relative; padding: 0 0 10px 28px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) translateY(-50%); }
.t-buy { margin: 22px 0 0; }

.buy-steps { margin-bottom: 70px; }
.buy-steps .section-title { margin-bottom: 36px; }
.buy-steps .section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--brand); margin-top: 18px; }
.ask-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--brand); padding: 30px 34px; margin-bottom: 100px; }
.ask-box h3 { font-size: 26px; margin-bottom: 6px; }
.ask-box p { margin: 0; color: var(--muted); }

@media (max-width: 960px) {
  details.tool summary { grid-template-columns: 1fr 36px; gap: 8px 14px; padding: 20px 6px; }
  .t-n { display: none; }
  .t-main { grid-column: 1; }
  .t-price { grid-column: 1; justify-self: start; }
  .t-toggle { grid-column: 2; grid-row: 1; }
  .tool-body { grid-template-columns: 1fr; gap: 10px; padding: 6px 6px 28px; }
}


/* ===== YouTube preview popup for AutoCAD tools ===== */
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tool-actions .btn { justify-content: center; }
.tool-actions .btn svg { width: 17px; height: 17px; fill: currentColor; }
.tool-actions .t-buy { margin: 0; }
.preview-btn { background: #fff; color: var(--navy); border-color: var(--navy); }
.preview-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.video-modal[hidden], .video-modal__frame[hidden], .video-modal__empty[hidden], .video-modal__youtube[hidden] { display: none !important; }
.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.video-modal__dialog { position: relative; z-index: 1; width: min(900px, 100%); max-height: min(90vh, 900px); overflow-y: auto; background: #fff; color: var(--text); border-top: 5px solid var(--brand); padding: clamp(20px, 4vw, 34px); box-shadow: 0 24px 90px rgba(0,0,0,.4); }
.video-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.video-modal__header .eyebrow { margin: 0 0 6px; }
.video-modal__header h2 { font-size: clamp(25px, 4vw, 34px); margin: 0; }
.video-modal__close { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 2px solid #111; background: #fff; color: #111; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.video-modal__close:hover { background: #111; color: var(--brand); }
.video-modal__message { margin: 12px 0 20px; color: var(--muted); }
.video-modal__frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__empty { min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 30px 22px; text-align: center; background: var(--bg-soft); border: 1px dashed #AAB2BF; }
.video-modal__playmark { display: grid; place-items: center; width: 58px; height: 58px; padding-left: 4px; border-radius: 50%; background: #E62117; color: #fff; font-size: 23px; }
.video-modal__empty h3 { margin: 4px 0 0; font-size: 23px; }
.video-modal__empty p { max-width: 590px; margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.video-modal__empty code { padding: 2px 5px; background: #e7ebf0; color: #111; }
.video-modal__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.video-modal__youtube { color: #B3130D; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.video-modal__youtube:hover { color: #6E0B08; text-decoration: underline; }
.video-modal__privacy { color: var(--muted); font-size: 12px; }
body.video-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .tool-actions { align-items: stretch; }
  .tool-actions .btn { width: 100%; }
  .video-modal { padding: 10px; }
  .video-modal__dialog { max-height: 94vh; padding: 18px; }
  .video-modal__empty { min-height: 190px; padding: 24px 14px; }
  .video-modal__footer { align-items: flex-start; flex-direction: column; }
}


/* =========================================================
   v10: PHOTOS  (all photos live in images/photos/ , same file name = easy swap)
   ========================================================= */
body { overflow-x: clip; }

/* hero: photo inside the blue panel (blue duotone, so the 3D render on top stays clear) */
.slide::before { background: var(--navy-dark) var(--hero, none) center / cover no-repeat; }
.slide:nth-child(1) { --hero: url(../images/photos/hero-1.jpg); }
.slide:nth-child(2) { --hero: url(../images/photos/hero-2.jpg); }
.slide:nth-child(3) { --hero: url(../images/photos/hero-3.jpg); }

/* about: photo with an orange offset block */
.intro-img { position: relative; padding: 0; border: 0; background: none; box-shadow: 14px 14px 0 var(--brand); }
.intro-img img { width: 100%; max-height: none; aspect-ratio: 5 / 4; object-fit: cover; }

/* services: a photo on top of each column (3 services = 3 equal columns) */
@media (min-width: 961px) { .svc { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .svc > div:last-child { margin-right: 30px; } }
.svc > div::before { content: ""; display: block; aspect-ratio: 16 / 10; margin-bottom: 24px; background: var(--bg-soft) var(--svc, none) center / cover no-repeat; border-bottom: 4px solid var(--brand); }
.svc > div:nth-child(1) { --svc: url(../images/photos/service-1.jpg); }
.svc > div:nth-child(2) { --svc: url(../images/photos/service-2.jpg); }
.svc > div:nth-child(3) { --svc: url(../images/photos/service-3.jpg); }

/* why band + contact panel: photo baked into the brand blue */
.why { background: var(--navy-dark) url(../images/photos/why-bg.jpg) center / cover no-repeat; }
.contact-info { background: var(--navy-dark) url(../images/photos/contact-bg.jpg) center bottom / cover no-repeat; }

/* AutoCAD promo band on the home page */
.promo { background: linear-gradient(90deg, rgba(2,31,64,.95) 0%, rgba(2,31,64,.85) 48%, rgba(2,40,84,.55) 100%), url(../images/photos/promo-bg.jpg) center / cover no-repeat; }

/* full-width photo banners on Projects / AutoCAD Tools / Insights pages */
.page-head--photo { position: relative; z-index: 0; padding: 78px 0 66px; margin-bottom: 44px; }
.page-head--photo::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-bottom: 4px solid var(--brand); background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-head--photo .eyebrow { color: var(--brand); }
.page-head--photo h1 { color: #fff; }
.page-head--photo .lead { color: #DCE6F2; }
.page-head--projects::before { background-image: linear-gradient(90deg, rgba(2,31,64,.93) 0%, rgba(2,36,76,.78) 55%, rgba(2,40,84,.5) 100%), url(../images/photos/banner-projects.jpg); }
.page-head--autocad::before  { background-image: linear-gradient(90deg, rgba(2,31,64,.94) 0%, rgba(2,36,76,.8) 55%, rgba(2,40,84,.55) 100%), url(../images/photos/banner-autocad.jpg); }
.page-head--insights::before { background-image: linear-gradient(90deg, rgba(2,31,64,.93) 0%, rgba(2,36,76,.76) 55%, rgba(2,40,84,.45) 100%), url(../images/photos/banner-insights.jpg); }

@media (max-width: 600px) {
  .intro-img { box-shadow: 10px 10px 0 var(--brand); }
  .page-head--photo { padding: 56px 0 48px; }
}


/* =========================================================
   v11: LOGO NUANCE (angular blue blocks + orange accent)
   ========================================================= */
/* orange diagonal stripe along the edge of the hero panel */
.slide::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: calc(46% + 14px); background: var(--brand); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
/* faint C mark from the logo behind the hero text */
.hero-slider { background-image: url(../images/mark-faint.png), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-repeat: no-repeat, repeat, repeat; background-position: -50px 115%, 0 0, 0 0; background-size: 540px auto, 40px 40px, 40px 40px; }
/* cut corners on the main buttons, like the angled cuts in the logo */
.btn-primary { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn-primary:focus-visible { clip-path: none; }
.video-modal__close { border-color: var(--navy); color: var(--navy); }
.video-modal__close:hover { background: var(--navy); color: #fff; }

@media (max-width: 960px) {
  .slide::after { width: 100%; height: calc(38% + 12px); top: auto; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .hero-slider { background-size: 380px auto, 40px 40px, 40px 40px; }
}

/* =========================================================
   v11: FOUNDER PAGE + PROJECT SIMULATION BLOCK
   ========================================================= */
.page-head--founder::before { background-image: linear-gradient(90deg, rgba(2,31,64,.96) 0%, rgba(2,36,76,.82) 48%, rgba(2,40,84,.25) 100%), url(../images/photos/banner-founder.jpg); background-position: right center; }
.prose p { color: var(--muted); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.research { margin: 0 0 90px; padding: 34px 38px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 6px solid var(--brand); display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.research h3 { font-size: 26px; margin-bottom: 8px; }
.research p { margin: 0; color: var(--muted); }
.research .eyebrow { margin-bottom: 8px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sim { padding: 0 0 90px; }
.sim h2 { font-size: clamp(26px, 3vw, 34px); }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 26px 0 34px; }
.sim figure { margin: 0; }
.sim video { display: block; width: 100%; aspect-ratio: 1013 / 473; background: #0b2342; border-bottom: 4px solid var(--brand); }
.sim figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0 0 30px; }
.results div { border-top: 4px solid var(--brand); padding-top: 14px; }
.results strong { display: block; font-family: var(--font-head); font-size: 38px; line-height: 1.05; color: var(--navy); }
.results span { color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.chips span { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); border: 2px solid var(--navy); padding: 5px 12px; }
@media (max-width: 960px) { .research { grid-template-columns: 1fr; } .results, .sim-grid { grid-template-columns: 1fr; } }

/* menu switches to the hamburger a bit earlier because there are now 8 menu items */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; background: #fff; border-bottom: 4px solid var(--brand); box-shadow: 0 14px 24px rgba(2,31,64,.12); }
  .nav.open { display: flex; }
}


/* =========================================================
   v12: WHY cards with photos, founder photo, no floating parts in the hero
   ========================================================= */
.why--cards .section-title, .why--cards h3 { text-transform: uppercase; letter-spacing: .02em; }
.why--cards .s-head { align-items: start; }
.why--cards .s-head p { font-size: 17px; line-height: 1.7; }
.why-grid .why-card { border-top: 0; padding-top: 0; }
.why-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 30px; box-shadow: 8px 8px 0 var(--brand); }
.why-card h3 { font-size: 20px; margin-bottom: 10px; }

.intro-img--founder img { aspect-ratio: 4 / 5; object-position: 50% 38%; filter: grayscale(1) contrast(1.05); }
.intro-cap { position: absolute; left: 0; bottom: 0; background: var(--navy-deep); color: var(--on-dark); padding: 14px 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-top: 4px solid var(--brand); }
.intro-cap strong { display: block; color: #fff; font-size: 14px; letter-spacing: .04em; }
.founder-top { align-items: start; }
.founder-top .facts { margin: 30px 0 26px; }
@media (max-width: 960px) { .founder-top .intro-img { order: -1; } }


/* =========================================================
   v13: PROJECT DETAIL PAGES (hero, overview, specifications, gallery)
   ========================================================= */
.proj-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #EEF3F9 62%, #E4ECF6 100%); border-bottom: 1px solid var(--line); }
.proj-hero::before { content: ""; position: absolute; left: -7%; top: 10%; width: 48%; height: 74%; background: rgba(2,64,124,.035); clip-path: polygon(0 100%, 32% 0, 100% 0, 68% 100%); }
.proj-hero::after { content: ""; position: absolute; left: 4%; top: 56%; width: 38%; height: 58%; background: rgba(2,64,124,.03); clip-path: polygon(0 100%, 34% 0, 100% 0, 66% 100%); }
.proj-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 60px; }
.proj-hero-img img { display: block; width: 100%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(2,31,64,.22)); }
.proj-hero-text .back { margin-bottom: 26px; }
.proj-bar { display: block; width: 60px; height: 4px; background: var(--brand); margin-bottom: 22px; }
.proj-hero-text h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 14px; }
.proj-tagline { font-size: 20px; line-height: 1.5; color: var(--text); margin: 0 0 28px; max-width: 520px; }
.proj-meta { list-style: none; display: flex; flex-wrap: wrap; row-gap: 14px; padding: 0; margin: 0 0 32px; }
.proj-meta li { display: flex; align-items: center; gap: 9px; padding: 0 18px; border-left: 1px solid var(--line); color: var(--text); font-size: 16px; white-space: nowrap; }
.proj-meta li:first-child { padding-left: 0; border-left: 0; }
.proj-meta svg, .proj-meta img { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill { display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 999px; background: #F26200; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 17px; text-decoration: none; transition: background .15s; }
.btn-pill:hover { background: var(--navy); color: #fff; }

.proj-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 80px; }
.bar-title { position: relative; padding-left: 18px; font-size: clamp(26px, 3vw, 32px); margin-bottom: 18px; }
.bar-title::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px; background: var(--brand); }
.proj-over p { font-size: 18px; color: var(--muted); }
.proj-over hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 22px; }
.proj-over h3 { font-size: 22px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 12px 36px; font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.proj-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 34px 36px; }
.proj-panel h3 { font-size: 22px; margin-bottom: 16px; }
.proj-panel .facts { margin-bottom: 0; }
.proj-panel img { display: block; width: 100%; height: auto; }

.proj-gallery { margin-top: -50px; padding-bottom: 90px; }
.gallery-note { color: var(--muted); margin: 0 0 22px; }
.gallery-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.gallery { display: flex; gap: 18px; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 calc((100% - 18px) / 2); margin: 0; scroll-snap-align: start; }
.gallery img, .gallery video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bg-soft); }
.gallery video { aspect-ratio: 1013 / 472; background: #0b2342; }
.gallery figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav[hidden] { display: none; }
.g-btn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #E3EAF3; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.g-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.g-btn.next { background: var(--brand); color: #fff; }
.g-btn:hover { background: var(--navy); color: #fff; }

@media (max-width: 960px) {
  .proj-hero-in, .proj-body { grid-template-columns: 1fr; gap: 30px; }
  .proj-hero-in { padding-top: 34px; padding-bottom: 44px; }
  .proj-body { padding-top: 44px; }
  .gallery-wrap { flex-direction: column; align-items: stretch; }
  .gallery figure { flex-basis: 86%; }
  .gallery-nav { justify-content: flex-end; }
  .proj-meta li { padding: 0 14px; font-size: 15px; }
  .proj-gallery { margin-top: -30px; }
}
@media (max-width: 600px) { .proj-meta { column-gap: 20px; } .proj-meta li { border-left: 0; padding: 0; } }


/* =========================================================
   v15: PROJECT PAGES - main gallery (confidential 2D preview) + secondary gallery
   ========================================================= */
.btn-pill svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-pill--outline:hover { background: var(--navy); color: #fff; }
.proj-panel--main { padding: 28px 30px 32px; }
.proj-panel--main h3 { margin-bottom: 14px; }
.gallery-wrap--main { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
.gallery--main figure { flex: 0 0 100%; }
.gallery--main + .gallery-nav { justify-content: flex-end; }
.conf-note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }

/* CONFIDENTIAL: every <figure class="confidential"> is blurred and stamped by code, whatever picture is inside */
.confidential { position: relative; overflow: hidden; border-radius: 14px; background: #fff; }
.confidential img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; filter: blur(3px); transform: scale(1.06); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.confidential::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(2,64,124,.07); }
.confidential::after { content: "Confidential"; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 26px; background: rgba(2,31,64,.9); border: 2px solid var(--brand); color: #fff; font-family: var(--font-mono); font-weight: 800; font-size: clamp(13px, 1.9vw, 21px); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

/* secondary gallery: row of small tiles like the draft */
.gallery--tiles figure { flex: 0 0 calc((100% - 54px) / 4); }
.gallery--tiles img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.gallery--tiles img.is-render { object-fit: contain; padding: 16px; }
.proj-body { padding-bottom: 60px; }
.proj-gallery { margin-top: 0; padding-top: 10px; }
@media (max-width: 960px) {
  .gallery--tiles figure { flex-basis: 64%; }
  .gallery-wrap--main .gallery-nav { justify-content: flex-end; }
  .proj-gallery { padding-top: 0; }
}

.nw { white-space: nowrap; }
