/* =========================================================
   YEMAN — EDITORIAL BUSINESS-TECH DESIGN (V4)
   Inspired by the structure and clarity of Lian Labs,
   adapted to YEMAN's identity, work and verified experience.
   ========================================================= */
:root {
    --ym-black: #030611;
    --ym-navy: #07102d;
    --ym-navy-2: #101d3b;
    --ym-blue: #2f76f6;
    --ym-blue-bright: #62a0ff;
    --ym-blue-pale: #eaf2ff;
    --ym-white: #ffffff;
    --ym-paper: #f5f7fb;
    --ym-paper-2: #edf2f8;
    --ym-text: #152039;
    --ym-muted: #637087;
    --ym-line: #e1e7f0;
    --content-width: 1180px;
    --page-gutter: 30px;
    --shadow-soft: 0 22px 65px rgba(7, 16, 45, .10);

    /* Legacy variables required by the existing Steam project page. */
    --black: #030611;
    --white: #ffffff;
    --navy: #07102d;
    --light-gray: #f5f7fb;
    --text-gray: #667085;
    --line: #e4e9f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    color: var(--ym-text);
    background: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.ym-container { width: min(var(--content-width), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 3000;
    padding: 10px 16px; transform: translateY(-160%); border-radius: 8px;
    background: #fff; color: var(--ym-navy); box-shadow: 0 5px 20px rgba(0,0,0,.2); font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #75aaff; outline-offset: 3px; }

/* Navigation */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(3, 6, 17, .96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.nav-container {
    position: relative; width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
    min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 0 0 auto; }
.brand-logo { width: 39px; height: 43px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.02; }
.brand-name { color: #fff; font-size: 20px; font-weight: 850; letter-spacing: 2.4px; }
.brand-divider { width: 1px; height: 31px; margin: 0 5px 0 8px; background: rgba(255,255,255,.25); }
.brand-tagline { color: #aab6cc; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(13px, 1.65vw, 23px); }
.nav-links > a:not(.nav-cta) { position: relative; padding: 10px 0; color: #dce3f1; font-size: 11px; font-weight: 650; transition: color .18s ease; white-space: nowrap; }
.nav-links > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; border-radius: 2px; background: var(--ym-blue-bright); content: ""; transition: transform .2s ease; }
.nav-links > a:not(.nav-cta):hover { color: #fff; }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(121,170,255,.5); border-radius: 7px; background: var(--ym-blue); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; transition: transform .18s ease, background .18s ease; }
.nav-cta:hover { transform: translateY(-1px); background: #4b8cff; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; border-radius: 2px; background: #fff; }

/* Shared component rhythm */
.ym-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 780; line-height: 1.2; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.ym-button:hover { transform: translateY(-2px); }
.ym-button-primary { background: var(--ym-blue); color: #fff; box-shadow: 0 9px 24px rgba(47,118,246,.22); }
.ym-button-primary:hover { background: #4b8cff; box-shadow: 0 13px 28px rgba(47,118,246,.28); }
.ym-button-ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.035); color: #fff; }
.ym-button-ghost:hover { background: rgba(255,255,255,.11); }
.ym-section { padding: 92px 0; scroll-margin-top: 88px; }
.ym-section-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #3976d7; font-size: 9px; font-weight: 850; letter-spacing: 2px; text-transform: uppercase; }
.ym-section-kicker::before { width: 22px; height: 2px; background: var(--ym-blue); content: ""; }
.ym-section h2, .ym-contact h2 { max-width: 700px; margin: 0; color: var(--ym-navy); font-size: clamp(34px, 4vw, 49px); font-weight: 830; letter-spacing: -1.8px; line-height: 1.11; }
.ym-section h2 span { color: #477ccc; }
.ym-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.65fr); align-items: end; gap: 44px; margin-bottom: 38px; }
.ym-section-heading > p { max-width: 440px; margin: 0 0 5px; color: var(--ym-muted); font-size: 13px; line-height: 1.85; }

/* Hero */
.ym-hero { position: relative; overflow: hidden; padding: 78px 0 74px; color: #fff; background: radial-gradient(ellipse at 78% 20%, rgba(42,104,222,.25), transparent 39%), linear-gradient(112deg,#050a1c 0%,#07102d 58%,#0c1a3b 100%); scroll-margin-top: 78px; }
.ym-hero::before { position: absolute; inset: 0; pointer-events: none; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg,black,transparent 82%); content: ""; }
.ym-hero-gridline { position: absolute; width: 650px; height: 650px; top: -410px; right: -100px; border: 1px solid rgba(114,164,255,.14); border-radius: 50%; box-shadow: 0 0 0 55px rgba(114,164,255,.025), 0 0 0 110px rgba(114,164,255,.02); pointer-events: none; }
.ym-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: center; gap: clamp(35px,5vw,72px); }
.ym-hero-copy { max-width: 590px; padding: 5px 0; }
.ym-eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: #c3d0e9; font-size: 9px; font-weight: 850; letter-spacing: 2.25px; }
.ym-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #73aaff; box-shadow: 0 0 0 5px rgba(112,168,255,.13); }
.ym-hero h1 { max-width: 630px; margin: 0 0 23px; color: #fff; font-size: clamp(46px,5.2vw,68px); font-weight: 850; letter-spacing: -3.1px; line-height: 1.035; }
.ym-hero h1 em { display: block; color: #9fc3ff; font-style: normal; }
.ym-hero-description { max-width: 510px; margin: 0 0 27px; color: #d3dced; font-size: 15px; line-height: 1.85; }
.ym-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.ym-hero-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: #aebdd7; font-size: 10px; font-weight: 650; }
.ym-hero-note-line { width: 24px; height: 1px; background: #69a0ff; }
.ym-hero-visual { position: relative; min-width: 0; padding: 8px 0 30px; }
.ym-hero-image-frame { position: relative; overflow: hidden; aspect-ratio: 1.48 / 1; border: 1px solid rgba(173,202,255,.3); border-radius: 15px; background: #08122e; box-shadow: 0 28px 75px rgba(0,0,0,.38); }
.ym-hero-image-frame::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,10,27,.11),transparent 58%,rgba(4,10,27,.06)); content: ""; pointer-events: none; }
.ym-hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ym-hero-floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.65); border-radius: 9px; background: #fff; color: var(--ym-navy); box-shadow: 0 15px 40px rgba(0,0,0,.25); }
.ym-floating-card-top { top: 0; right: -12px; }
.ym-floating-card-bottom { bottom: 0; left: -18px; }
.ym-floating-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #edf3ff; color: var(--ym-blue); font-size: 18px; font-weight: 800; }
.ym-floating-dot { width: 9px; height: 9px; border-radius: 50%; background: #36b889; box-shadow: 0 0 0 5px #e5f7f0; }
.ym-hero-floating-card strong, .ym-hero-floating-card small { display: block; }
.ym-hero-floating-card strong { font-size: 10px; }
.ym-hero-floating-card small { margin-top: 2px; color: #758198; font-size: 9px; }
.ym-hero-visual-caption { position: absolute; right: 10px; bottom: 6px; color: #b6c8e7; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }

/* Proof band: principles, not fabricated statistics. */
.ym-proof-band { border-bottom: 1px solid var(--ym-line); background: #fff; }
.ym-proof-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.ym-proof-grid > div { min-height: 91px; display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-right: 1px solid var(--ym-line); }
.ym-proof-grid > div:first-child { padding-left: 0; }
.ym-proof-grid > div:last-child { border-right: 0; }
.ym-proof-index { color: #3e7be0; font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.ym-proof-grid strong, .ym-proof-grid small { display: block; }
.ym-proof-grid strong { color: var(--ym-navy); font-size: 12px; }
.ym-proof-grid small { margin-top: 3px; color: var(--ym-muted); font-size: 10px; }

/* Problem cards */
.ym-problems { background: var(--ym-paper); }
.ym-problem-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.ym-problem-card { position: relative; min-height: 220px; padding: 23px 21px; border: 1px solid var(--ym-line); border-radius: 10px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ym-problem-card:hover { transform: translateY(-3px); border-color: #c4d7f8; box-shadow: 0 15px 35px rgba(7,16,45,.07); }
.ym-problem-number { position: absolute; top: 23px; right: 21px; color: #9aa8bc; font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.ym-problem-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 9px; background: var(--ym-blue-pale); color: #2e70dc; }
.ym-problem-icon svg { width: 21px; height: 21px; }
.ym-problem-card h3 { max-width: 220px; margin: 0 0 8px; color: var(--ym-navy); font-size: 14px; line-height: 1.35; }
.ym-problem-card p { margin: 0; color: var(--ym-muted); font-size: 11px; line-height: 1.75; }

/* Services */
.ym-services { background: #fff; }
.ym-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ym-service-card { position: relative; min-height: 220px; padding: 25px 27px; border: 1px solid var(--ym-line); border-radius: 10px; background: linear-gradient(145deg,#fff,#f9fbff); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ym-service-card:hover { transform: translateY(-3px); border-color: #b8cff3; box-shadow: 0 16px 36px rgba(27,66,132,.08); }
.ym-service-card-featured { border-color: #c4d8f8; background: linear-gradient(135deg,#f7faff,#eef5ff); }
.ym-service-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #dce8ff; border-radius: 9px; background: #edf4ff; color: #286cde; }
.ym-service-icon svg { width: 21px; height: 21px; }
.ym-service-label { display: block; margin-bottom: 6px; color: #7485a2; font-size: 8px; font-weight: 850; letter-spacing: 1.35px; }
.ym-service-card h3 { margin: 0 28px 7px 0; color: var(--ym-navy); font-size: 17px; font-weight: 820; line-height: 1.35; }
.ym-service-card p { max-width: 450px; margin: 0; color: var(--ym-muted); font-size: 12px; line-height: 1.8; }
.ym-service-arrow { position: absolute; top: 25px; right: 25px; color: #7f9fd3; font-size: 18px; transition: transform .2s ease, color .2s ease; }
.ym-service-card:hover .ym-service-arrow { transform: translate(2px,-2px); color: var(--ym-blue); }
.ym-capabilities { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ym-line); }
.ym-capabilities-title { padding-top: 8px; color: #75829a; font-size: 8px; font-weight: 850; letter-spacing: 1.5px; }
.ym-capability-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ym-capability-list span { padding: 7px 11px; border: 1px solid #e1e7f0; border-radius: 30px; background: #fafcff; color: #526078; font-size: 10px; font-weight: 650; }

/* Case study */
.ym-work { padding: 94px 0; background: linear-gradient(120deg,#06102c,#0a1838); color: #fff; scroll-margin-top: 88px; }
.ym-work .ym-section-kicker { color: #a9c6f6; }
.ym-work .ym-section-heading h2 { color: #fff; }
.ym-work .ym-section-heading h2 span { color: #9fc3ff; }
.ym-work .ym-section-heading > p { color: #bbc9df; }
.ym-work-heading { margin-bottom: 32px; }
.ym-case-study { overflow: hidden; display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.045); box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.ym-case-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px,4vw,47px); }
.ym-case-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 25px; color: #b7c8e5; font-size: 8px; font-weight: 850; letter-spacing: 1.25px; }
.ym-case-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #68a0ff; }
.ym-case-client { margin: 0 0 7px; color: #9fc1fc; font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.ym-case-copy h3 { margin: 0 0 13px; color: #fff; font-size: clamp(25px,3vw,35px); font-weight: 850; letter-spacing: -1px; line-height: 1.14; }
.ym-case-summary { max-width: 410px; margin: 0 0 23px; color: #c9d5e9; font-size: 12px; line-height: 1.85; }
.ym-case-details { display: grid; gap: 13px; margin-bottom: 20px; }
.ym-case-details > div { padding-left: 12px; border-left: 2px solid #5189ec; }
.ym-case-details span { color: #8fa7cd; font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.ym-case-details p { margin: 3px 0 0; color: #e0e8f5; font-size: 11px; line-height: 1.65; }
.ym-case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 23px; }
.ym-case-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #d3e0f5; font-size: 9px; font-weight: 700; }
.ym-case-copy .ym-button { margin-top: auto; }
.ym-case-privacy { display: block; margin-top: 13px; color: #9baac4; font-size: 9px; line-height: 1.55; }
.ym-case-visual { min-width: 0; padding: 25px; background: linear-gradient(145deg,#101f40,#172e59); }
.ym-case-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #d8e4f6; }
.ym-case-window-bar > span { display: flex; gap: 5px; }
.ym-case-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #7895c6; }
.ym-case-window-bar strong, .ym-case-window-bar small { font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.ym-case-window-bar small { color: #94a9ca; }
.ym-case-screenshot { overflow: hidden; aspect-ratio: 1.5 / 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: #e9eef6; }
.ym-case-screenshot img { width: 100%; height: 100%; object-fit: contain; }
.ym-case-visual > p { margin: 11px 0 0; color: #aebdd8; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; text-align: right; }

/* Process */
.ym-process { background: var(--ym-paper); }
.ym-process-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.ym-process-step { position: relative; min-height: 190px; padding: 22px 20px; border: 1px solid var(--ym-line); border-radius: 9px; background: #fff; }
.ym-step-number { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 24px; border-radius: 8px; background: #edf4ff; color: #2c6dd5; font-size: 10px; font-weight: 850; }
.ym-step-line { position: absolute; top: 39px; right: -17px; width: 17px; height: 1px; background: #9ab7e6; }
.ym-process-step:last-child .ym-step-line { display: none; }
.ym-process-step h3 { margin: 0 0 7px; color: var(--ym-navy); font-size: 15px; }
.ym-process-step p { margin: 0; color: var(--ym-muted); font-size: 11px; line-height: 1.75; }

/* About / why YEMAN */
.ym-about { padding: 96px 0; background: #fff; scroll-margin-top: 88px; }
.ym-about-layout { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); align-items: center; gap: clamp(42px,6vw,80px); }
.ym-about-visual { position: relative; min-width: 0; padding: 0 18px 18px 0; }
.ym-about-visual::before { position: absolute; right: 0; bottom: 0; width: 72%; height: 78%; border-radius: 8px; background: #eaf2ff; content: ""; }
.ym-about-visual > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; border-radius: 9px; box-shadow: var(--shadow-soft); }
.ym-about-image-caption { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #e2e8f2; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(7,16,45,.12); }
.ym-about-caption-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--ym-navy); color: #fff; font-size: 14px; font-weight: 900; }
.ym-about-image-caption strong, .ym-about-image-caption small { display: block; }
.ym-about-image-caption strong { color: var(--ym-navy); font-size: 10px; }
.ym-about-image-caption small { margin-top: 2px; color: #77839a; font-size: 8px; }
.ym-about-copy h2 { max-width: 580px; }
.ym-about-copy h2 span { color: #477ccc; }
.ym-about-lead { margin: 22px 0 10px; color: #2b3951; font-size: 15px; font-weight: 700; line-height: 1.75; }
.ym-about-copy > p:not(.ym-section-kicker):not(.ym-about-lead) { margin: 0; color: var(--ym-muted); font-size: 12px; line-height: 1.9; }
.ym-about-principles { display: grid; gap: 13px; margin-top: 27px; }
.ym-about-principles > div { display: flex; align-items: flex-start; gap: 12px; }
.ym-about-principles b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 6px; background: #edf4ff; color: #3374df; font-size: 8px; }
.ym-about-principles strong, .ym-about-principles small { display: block; }
.ym-about-principles strong { color: var(--ym-navy); font-size: 11px; }
.ym-about-principles small { margin-top: 2px; color: var(--ym-muted); font-size: 10px; }

/* Engagement options */
.ym-engagement { background: #fff; }
.ym-engagement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ym-engagement-card { min-height: 210px; padding: 23px 24px; border: 1px solid var(--ym-line); border-radius: 9px; background: linear-gradient(145deg,#fff,#f8faff); }
.ym-engagement-card > span { color: #3676dc; font-size: 9px; font-weight: 850; letter-spacing: 1.2px; }
.ym-engagement-card h3 { margin: 22px 0 8px; color: var(--ym-navy); font-size: 16px; }
.ym-engagement-card p { min-height: 62px; margin: 0 0 17px; color: var(--ym-muted); font-size: 11px; line-height: 1.75; }
.ym-engagement-card a { color: #2d6fd6; font-size: 10px; font-weight: 800; }
.ym-engagement-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ */
.ym-faq { background: var(--ym-paper); }
.ym-faq-layout { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(38px,7vw,90px); align-items: start; }
.ym-faq-intro h2 { margin: 0; color: var(--ym-navy); font-size: clamp(32px,3.8vw,44px); font-weight: 830; letter-spacing: -1.5px; line-height: 1.13; }
.ym-faq-intro h2 span { color: #477ccc; }
.ym-faq-intro > p:not(.ym-section-kicker) { max-width: 350px; margin: 17px 0 0; color: var(--ym-muted); font-size: 12px; line-height: 1.8; }
.ym-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #286bd4; font-size: 11px; font-weight: 800; transition: gap .18s ease; }
.ym-text-link:hover { gap: 13px; }
.ym-faq-list { border-top: 1px solid #dce3ed; }
.ym-faq-item { border-bottom: 1px solid #dce3ed; }
.ym-faq-item summary { position: relative; padding: 18px 38px 18px 0; color: var(--ym-navy); font-size: 13px; font-weight: 750; line-height: 1.5; list-style: none; cursor: pointer; }
.ym-faq-item summary::-webkit-details-marker { display: none; }
.ym-faq-item summary::after { position: absolute; top: 17px; right: 3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e8f0fd; color: #2d6fd6; content: "+"; font-size: 17px; font-weight: 500; }
.ym-faq-item[open] summary::after { content: "−"; }
.ym-faq-item p { max-width: 630px; margin: -2px 35px 18px 0; color: var(--ym-muted); font-size: 11px; line-height: 1.85; }

/* Contact */
.ym-contact { position: relative; overflow: hidden; padding: 96px 0; background: radial-gradient(ellipse at 93% 0%,rgba(44,103,214,.24),transparent 35%),linear-gradient(120deg,#06102c,#091735); color: #fff; scroll-margin-top: 88px; }
.ym-contact::after { position: absolute; right: -210px; bottom: -340px; width: 620px; height: 620px; border: 1px solid rgba(128,170,255,.14); border-radius: 50%; box-shadow: 0 0 0 50px rgba(128,170,255,.025),0 0 0 100px rgba(128,170,255,.02); content: ""; pointer-events: none; }
.ym-contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(40px,6vw,78px); align-items: start; }
.ym-contact .ym-section-kicker { color: #a8c4f6; }
.ym-contact h2 { max-width: 500px; color: #fff; font-size: clamp(34px,4vw,48px); }
.ym-contact h2 span { display: block; color: #a9c7ff; }
.ym-contact-intro { max-width: 440px; margin: 20px 0 26px; color: #c8d3e8; font-size: 13px; line-height: 1.9; }
.ym-contact-points { display: grid; gap: 12px; }
.ym-contact-points > div { display: flex; align-items: center; gap: 11px; color: #e3eaf7; font-size: 11px; }
.ym-contact-points b { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border: 1px solid rgba(255,255,255,.23); border-radius: 7px; color: #b8d0ff; font-size: 8px; }
.ym-contact-brand { display: flex; align-items: center; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.ym-contact-brand img { width: 35px; height: 36px; object-fit: contain; }
.ym-contact-brand strong, .ym-contact-brand small { display: block; }
.ym-contact-brand strong { color: #fff; font-size: 11px; letter-spacing: 1.5px; }
.ym-contact-brand small { margin-top: 2px; color: #9eacc8; font-size: 8px; letter-spacing: .7px; }
.ym-form-card { padding: clamp(24px,3vw,36px); border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: #fff; color: #111827; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.ym-form-heading { margin-bottom: 20px; }
.ym-form-kicker { margin: 0 0 7px; color: #4776c9; font-size: 8px; font-weight: 850; letter-spacing: 1.7px; }
.ym-form-heading h3 { margin: 0 0 4px; color: var(--ym-navy); font-size: 21px; letter-spacing: -.5px; }
.ym-form-heading > p:last-child { margin: 0; color: #788398; font-size: 10px; }
.ym-contact-form { width: 100%; margin: 0; }
.ym-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.ym-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ym-field-wide { grid-column: 1 / -1; }
.ym-field label { color: #273550; font-size: 10px; font-weight: 750; }
.contact-input, .contact-textarea { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #dce3ee; border-radius: 6px; outline: none; background: #f9fbfe; color: #111827; font-family: inherit; font-size: 12px; transition: border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.contact-input::placeholder, .contact-textarea::placeholder { color: #9aa5b7; }
.contact-input:focus, .contact-textarea:focus { border-color: #4c83dd; background: #fff; box-shadow: 0 0 0 3px rgba(63,130,255,.12); }
.contact-textarea { min-height: 120px; resize: vertical; }
.ym-submit { min-width: 165px; border: 0; }
.ym-form-privacy { margin: 10px 0 0; color: #8b95a7; font-size: 9px; }
.form-error, .errorlist { margin: 0; color: #b42318; font-size: 10px; line-height: 1.5; }
.errorlist { padding-left: 18px; margin-bottom: 12px; }
.contact-alert { padding: 12px 14px; margin: 0 0 17px; border: 1px solid #cce8d5; border-left: 4px solid #218838; border-radius: 6px; background: #f0faf3; color: #176b31; font-size: 11px; line-height: 1.6; }
.contact-alert.error, .contact-alert.warning { border-color: #f1d2ce; border-left-color: #c0392b; background: #fff5f4; color: #9f2d22; }
.contact-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Footer */
.footer { padding: 42px var(--page-gutter) 18px; background: #03050c; color: #fff; }
.footer-inner { width: min(var(--content-width),100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.9fr) auto; gap: 34px; align-items: start; }
.footer-main { padding-bottom: 17px; }
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.footer-logo { width: 36px; height: 37px; object-fit: contain; }
.footer-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand-name { color: #fff; font-size: 17px; font-weight: 850; letter-spacing: 1.9px; }
.footer-main p { margin: 3px 0 0; color: #a6b0c5; font-size: 10px; }
.footer-main .footer-main-tagline { margin-top: 7px; color: #74819b; font-size: 7px; font-weight: 800; letter-spacing: 1.1px; }
.footer-heading { margin: 2px 0 13px; color: #71819e; font-size: 8px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 11px 17px; }
.footer-links a { color: #c7cede; font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-top-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #d7e0f1; font-size: 10px; }
.footer-top-link:hover { border-color: rgba(127,174,255,.55); color: #fff; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: #7f899f; font-size: 9px; }
.footer-bottom a:hover { color: #fff; }

/* Existing Steam project detail page styles and gallery retained. */
/* Existing Steam project detail page styles and gallery retained. */
/* Project-detail page styling retained from the earlier version */
/* =========================================================
   PROJECT DETAILS PAGE STYLES
   Retained so the existing Steam project page keeps its layout.
========================================================= */
.project-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 100px var(--page-gutter);
    background: var(--navy);
    color: var(--white);
}

.project-hero h1 {
    margin: 0 0 20px;
    color: var(--white);
    font-size: clamp(35px, 5vw, 55px);
}

.project-hero p {
    max-width: 700px;
    margin: 0 0 20px;
}

.portfolio-intro { margin-bottom: 30px; }
.project-content h3 { margin: 15px 0; font-size: 26px; }
.project-content .button { margin-top: 15px; }

.project-features,
.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.project-features article,
.project-summary-card,
.project-feature-grid .project-feature-card {
    padding: 25px;
    border-radius: 8px;
    background: var(--light-gray);
}

.project-features h3 { margin-bottom: 10px; }
.project-features p { color: var(--text-gray); }
.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.project-summary-card,
.project-feature-grid .project-feature-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.project-summary-card h3,
.project-feature-grid .project-feature-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
}

.project-summary-card p,
.project-feature-grid .project-feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.project-features-section,
.client-profile-section { background: var(--light-gray); }
.project-feature-grid { margin-top: 35px; }
.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.project-tech-list span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
}

.project-privacy-section {
    background: var(--navy);
    color: var(--white);
}

.project-privacy-section .section-heading { color: var(--white); }
.project-privacy-section .section-description { color: #e0e0e0; }

.client-business-name {
    margin: -10px 0 20px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
}

.client-project-note {
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid var(--navy);
    border-radius: 5px;
    background: var(--white);
    color: var(--text-gray);
    line-height: 1.8;
}

/* Existing interactive project gallery */
.interface-carousel {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
}

.interface-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    outline-offset: 5px;
    background: #f4f4f4;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    touch-action: pan-y;
}

.interface-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.interface-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}

.interface-image-frame {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e9edf2;
}

.interface-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.interface-slide figcaption { padding: 20px 8px 12px; }
.interface-slide figcaption h3 { margin: 0 0 8px; color: var(--navy); }
.interface-slide figcaption p { color: var(--text-gray); line-height: 1.6; }

.interface-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 25px;
}

.interface-arrow {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.interface-arrow:hover { transform: scale(1.06); background: #e9edf2; }
.interface-dots { display: flex; align-items: center; gap: 10px; }

.interface-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #bbb;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.interface-dots button[aria-current="true"] {
    width: 27px;
    background: var(--navy);
}

.interface-arrow:focus-visible,
.interface-dots button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 4px;
}



/* Responsive homepage and existing project detail page */
@media (max-width: 1080px) {
    :root { --page-gutter: 25px; }
    .nav-container { gap: 17px; }
    .nav-links { gap: 13px; }
    .brand-tagline { display: none; }
    .brand-divider { display: none; }
    .ym-hero-layout { gap: 34px; }
    .ym-problem-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ym-case-study { grid-template-columns: .9fr 1.1fr; }
    .ym-about-layout { gap: 43px; }
}
@media (max-width: 900px) {
    :root { --page-gutter: 23px; }
    .nav-container { min-height: 74px; }
    .nav-links { gap: 11px; }
    .nav-links > a:not(.nav-cta) { font-size: 10px; }
    .nav-cta { padding: 9px 11px; font-size: 10px; }
    .ym-hero { padding: 65px 0; }
    .ym-hero-layout { grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 26px; }
    .ym-hero h1 { font-size: clamp(42px,5.5vw,57px); letter-spacing: -2.5px; }
    .ym-hero-description { font-size: 13px; }
    .ym-section { padding: 78px 0; }
    .ym-work { padding: 78px 0; }
    .ym-case-study { grid-template-columns: 1fr; }
    .ym-case-copy { padding: 32px; }
    .ym-case-visual { padding: 22px; }
    .ym-process-track { gap: 10px; }
    .ym-process-step { padding: 18px 15px; }
    .ym-about { padding: 78px 0; }
    .ym-contact { padding: 78px 0; }
    .ym-contact-grid { gap: 33px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-cta-block { grid-column: 2; }
}
@media (max-width: 760px) {
    :root { --page-gutter: 21px; }
    html { scroll-padding-top: 74px; }
    .nav-container { min-height: 70px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; right: calc(-1 * var(--page-gutter)); left: calc(-1 * var(--page-gutter));
        display: none; align-items: stretch; gap: 0; padding: 10px var(--page-gutter) 18px;
        border-top: 1px solid rgba(255,255,255,.1); background: rgba(3,6,17,.99); box-shadow: 0 20px 35px rgba(0,0,0,.22);
    }
    .nav-links.is-open, .nav-links.active { display: flex; flex-direction: column; }
    .nav-links > a:not(.nav-cta) { padding: 12px 0; font-size: 12px; }
    .nav-links > a:not(.nav-cta)::after { display: none; }
    .nav-cta { justify-content: center; margin-top: 9px; padding: 12px; font-size: 11px; }
    .ym-hero { padding: 55px 0 48px; }
    .ym-hero-layout { grid-template-columns: 1fr; gap: 30px; }
    .ym-hero-copy { max-width: 680px; }
    .ym-hero h1 { max-width: 650px; font-size: clamp(43px,8.3vw,61px); }
    .ym-hero-description { max-width: 590px; }
    .ym-hero-visual { width: min(680px,100%); margin: 0 auto; padding: 0 8px 22px; }
    .ym-hero-image-frame { aspect-ratio: 1.65 / 1; }
    .ym-floating-card-top { right: 0; }
    .ym-floating-card-bottom { left: 0; }
    .ym-proof-grid { grid-template-columns: 1fr; padding-block: 8px; }
    .ym-proof-grid > div, .ym-proof-grid > div:first-child { min-height: 65px; padding: 12px 2px; border-right: 0; border-bottom: 1px solid var(--ym-line); }
    .ym-proof-grid > div:last-child { border-bottom: 0; }
    .ym-section-heading { grid-template-columns: 1fr; gap: 13px; }
    .ym-section-heading > p { max-width: 620px; }
    .ym-service-grid { grid-template-columns: 1fr 1fr; }
    .ym-capabilities { grid-template-columns: 1fr; gap: 12px; }
    .ym-process-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ym-step-line { display: none; }
    .ym-about-layout { grid-template-columns: 1fr; gap: 40px; }
    .ym-about-visual { width: min(620px,100%); }
    .ym-about-visual > img { aspect-ratio: 1.55 / 1; }
    .ym-about-copy { max-width: 690px; }
    .ym-engagement-grid { grid-template-columns: 1fr; }
    .ym-engagement-card { min-height: 0; }
    .ym-engagement-card p { min-height: 0; }
    .ym-faq-layout { grid-template-columns: 1fr; gap: 30px; }
    .ym-faq-intro { max-width: 650px; }
    .ym-contact-grid { grid-template-columns: 1fr; }
    .ym-contact-copy { max-width: 680px; }
    .ym-form-card { max-width: 720px; }
}
@media (max-width: 540px) {
    :root { --page-gutter: 18px; }
    .brand { gap: 7px; }
    .brand-logo { width: 34px; height: 37px; }
    .brand-name { font-size: 17px; letter-spacing: 1.8px; }
    .brand-tagline, .brand-divider { display: none; }
    .ym-hero { padding: 45px 0 39px; }
    .ym-eyebrow { margin-bottom: 17px; font-size: 8px; letter-spacing: 1.7px; }
    .ym-hero h1 { font-size: clamp(39px,10.7vw,50px); letter-spacing: -2px; }
    .ym-hero-description { font-size: 13px; }
    .ym-hero-actions { align-items: stretch; flex-direction: column; }
    .ym-hero-actions .ym-button { width: 100%; }
    .ym-hero-image-frame { aspect-ratio: 1.25 / 1; }
    .ym-hero-floating-card { padding: 9px 10px; }
    .ym-hero-floating-card strong { font-size: 9px; }
    .ym-hero-floating-card small { font-size: 8px; }
    .ym-hero-visual-caption { right: 9px; font-size: 7px; }
    .ym-section, .ym-work, .ym-about, .ym-contact { padding: 67px 0; }
    .ym-section h2, .ym-contact h2, .ym-faq-intro h2 { font-size: 34px; letter-spacing: -1.2px; }
    .ym-problem-grid, .ym-service-grid, .ym-process-track { grid-template-columns: 1fr; }
    .ym-problem-card { min-height: 0; padding: 19px; }
    .ym-problem-icon { margin-bottom: 14px; }
    .ym-service-card { min-height: 0; padding: 21px; }
    .ym-service-card h3 { font-size: 16px; }
    .ym-case-copy { padding: 25px 20px; }
    .ym-case-visual { padding: 14px; }
    .ym-case-window-bar strong { font-size: 7px; }
    .ym-case-window-bar small { display: none; }
    .ym-case-screenshot { aspect-ratio: 1.12 / 1; }
    .ym-process-step { min-height: 150px; }
    .ym-about-visual > img { aspect-ratio: 1.12 / 1; }
    .ym-about-image-caption { right: 0; bottom: 0; padding: 9px 11px; }
    .ym-engagement-card { padding: 20px; }
    .ym-faq-item summary { font-size: 12px; }
    .ym-form-card { padding: 22px 17px; }
    .ym-form-grid { grid-template-columns: 1fr; gap: 12px; }
    .ym-field-wide { grid-column: auto; }
    .ym-submit { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-cta-block { grid-column: auto; }
    .footer-bottom { grid-column: auto; flex-direction: column; gap: 6px; }
    .footer { padding-top: 34px; }
    .project-summary-grid, .project-features, .project-feature-grid { grid-template-columns: 1fr; }
    .project-hero { min-height: 0; padding: 70px var(--page-gutter); }
    .interface-slide { padding: 8px; }
    .interface-controls { gap: 14px; }
    .interface-arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* =========================================================
   YEMAN MOBILE & RESPONSIVE POLISH (V5)
   Additive refinements: preserves V4 components and project page.
   ========================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 84px;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.ym-container,
.nav-container,
.footer-inner,
.ym-hero-layout,
.ym-about-layout,
.ym-contact-grid,
.ym-case-study,
.ym-section-heading,
.ym-problem-grid,
.ym-service-grid,
.ym-process-track,
.ym-engagement-grid,
.ym-faq-layout {
    min-width: 0;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

.nav-links > a {
    min-height: 42px;
}

.menu-toggle {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, background .2s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: rgba(98,160,255,.75);
    background: rgba(47,118,246,.12);
}

.menu-toggle span {
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.ym-button,
.nav-cta,
.footer-top-link,
.interface-arrow {
    touch-action: manipulation;
}

.ym-hero-image-frame img,
.ym-about-visual > img,
.ym-case-screenshot img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ym-field,
.ym-form-card,
.ym-case-copy,
.ym-case-visual,
.ym-service-card,
.ym-problem-card,
.ym-process-step,
.ym-engagement-card {
    min-width: 0;
}

.ym-field input,
.ym-field textarea,
.ym-field select,
.contact-input,
.contact-textarea {
    max-width: 100%;
    min-width: 0;
}

/* Tablets and compact laptops */
@media (max-width: 980px) {
    :root { --page-gutter: 24px; }

    .nav-container { gap: 16px; }
    .brand-tagline,
    .brand-divider { display: none; }
    .nav-links { gap: clamp(9px, 1.4vw, 14px); }
    .nav-links > a:not(.nav-cta) { font-size: 10px; }
    .nav-cta { min-height: 42px; padding-inline: 11px; }

    .ym-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
    .ym-hero h1 { overflow-wrap: normal; }
    .ym-section-heading { gap: 28px; }
    .ym-case-study { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .ym-contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* Phones and narrow tablets */
@media (max-width: 760px) {
    :root { --page-gutter: 21px; }
    html { scroll-padding-top: 72px; }

    .site-header { z-index: 1200; }
    .nav-container { min-height: 72px; }
    .menu-toggle { display: inline-flex; }
    .nav-links {
        z-index: 1201;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: 12px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .nav-links > a:not(.nav-cta) {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 11px 2px;
        font-size: 14px;
    }
    .nav-cta {
        min-height: 48px;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        font-size: 13px;
    }

    .ym-hero { padding: 58px 0 48px; }
    .ym-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .ym-hero-copy { max-width: 690px; }
    .ym-hero h1 { max-width: 12ch; font-size: clamp(42px, 8vw, 60px); line-height: 1.04; }
    .ym-hero-description { max-width: 58ch; font-size: 15px; }
    .ym-hero-actions { flex-wrap: wrap; gap: 11px; }
    .ym-hero-actions .ym-button { min-height: 48px; }
    .ym-hero-visual { width: min(680px, 100%); margin-inline: auto; }
    .ym-hero-image-frame { aspect-ratio: 1.7 / 1; }

    .ym-section,
    .ym-work,
    .ym-about,
    .ym-contact { padding-block: 72px; }
    .ym-section-heading { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .ym-section-heading > p { max-width: 62ch; }
    .ym-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ym-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ym-case-study { grid-template-columns: minmax(0, 1fr); }
    .ym-case-visual { min-width: 0; }
    .ym-process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ym-about-layout { grid-template-columns: minmax(0, 1fr); }
    .ym-about-visual { width: min(100%, 680px); }
    .ym-engagement-grid { grid-template-columns: minmax(0, 1fr); }
    .ym-faq-layout { grid-template-columns: minmax(0, 1fr); }
    .ym-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .ym-form-card { width: 100%; }

    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main,
    .footer-middle,
    .footer-cta-block { min-width: 0; }
    .footer-bottom { flex-wrap: wrap; }
}

/* Small phones */
@media (max-width: 540px) {
    :root { --page-gutter: 18px; }

    .nav-container { min-height: 68px; }
    .brand { gap: 7px; }
    .brand-logo { width: 32px; height: 36px; }
    .brand-name { font-size: 17px; letter-spacing: 1.7px; }
    .menu-toggle { width: 44px; height: 44px; }

    .ym-hero { padding: 47px 0 42px; }
    .ym-eyebrow { font-size: 8px; letter-spacing: 1.45px; }
    .ym-hero h1 { max-width: 11.5ch; font-size: clamp(38px, 10.4vw, 48px); letter-spacing: -1.8px; }
    .ym-hero-description { font-size: 14px; line-height: 1.75; }
    .ym-hero-actions { align-items: stretch; flex-direction: column; }
    .ym-hero-actions .ym-button { width: 100%; }
    .ym-hero-image-frame { aspect-ratio: 1.35 / 1; }
    .ym-hero-floating-card { max-width: 75%; padding: 9px 10px; }
    .ym-hero-floating-card strong { font-size: 9px; }
    .ym-hero-floating-card small { font-size: 8px; }
    .ym-hero-visual-caption { right: 8px; bottom: 0; font-size: 7px; }

    .ym-section,
    .ym-work,
    .ym-about,
    .ym-contact { padding-block: 61px; }
    .ym-section h2,
    .ym-contact h2,
    .ym-faq-intro h2 { font-size: clamp(31px, 8.5vw, 38px); letter-spacing: -1.15px; }
    .ym-problem-grid,
    .ym-service-grid,
    .ym-process-track { grid-template-columns: minmax(0, 1fr); }
    .ym-problem-card,
    .ym-service-card { min-height: 0; }
    .ym-case-copy { padding: 24px 19px; }
    .ym-case-visual { padding: 13px; }
    .ym-case-screenshot { aspect-ratio: 1.15 / 1; }
    .ym-process-step { min-height: 0; }
    .ym-about-visual > img { aspect-ratio: 1.3 / 1; }
    .ym-form-card { padding: 21px 16px; }
    .ym-form-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .ym-field-wide { grid-column: auto; }
    .contact-input,
    .contact-textarea { min-height: 48px; font-size: 16px; }
    .contact-textarea { min-height: 132px; }
    .ym-submit { width: 100%; min-height: 49px; }

    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .footer-cta-block { grid-column: auto; }
    .footer-bottom { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 7px; }
}

@media (max-width: 360px) {
    :root { --page-gutter: 15px; }
    .brand-name { font-size: 16px; letter-spacing: 1.4px; }
    .brand-logo { width: 29px; height: 33px; }
    .ym-hero h1 { font-size: 36px; }
    .ym-hero-floating-card { max-width: 82%; }
    .ym-case-window-bar strong { font-size: 7px; }
    .ym-case-window-bar small { display: none; }
}


/* =========================================================
   YEMAN V6 — branded workspace hero image
   Uses the supplied developer-workspace photo with the YEMAN
   logo integrated into the image asset. The image is portrait
   (3:4), so preserve its full composition instead of cropping
   it into the old landscape dashboard frame.
   ========================================================= */
.ym-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
}
.ym-hero-image-frame {
    position: relative;
    width: min(100%, 470px);
    margin-inline: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(126, 178, 255, .48);
    border-radius: 22px;
    background: linear-gradient(145deg, #07102d, #101f46);
    box-shadow: 0 28px 75px rgba(0, 0, 0, .38), 0 0 55px rgba(47, 118, 246, .16);
}
.ym-hero-image-frame::after {
    display: none;
}
.ym-hero-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}
.ym-hero-floating-card,
.ym-hero-visual-caption {
    display: none;
}

@media (max-width: 980px) {
    .ym-hero-image-frame { width: min(100%, 440px); }
}
@media (max-width: 760px) {
    .ym-hero-visual { width: min(100%, 440px); margin-inline: auto; padding: 0; }
    .ym-hero-image-frame { width: 100%; aspect-ratio: 3 / 4; }
}
@media (max-width: 540px) {
    .ym-hero-image-frame { width: 100%; aspect-ratio: 3 / 4; border-radius: 17px; }
}
