/* Shared responsive navigation, hero-chip and footer components are centralised in extiline-mobile.css. */
/*
  EXTILINE AI — Dedicated mobile experience
  Applies only to phone-sized screens. Desktop styling remains in index.html.
  Brand palette: Deep Navy #0B1F3A, Electric Blue #2563EB, White #FFFFFF.
*/

@media screen and (max-width: 767px) {
  :root {
    --mobile-gutter: 18px;
    --mobile-card-radius: 18px;
    --mobile-shadow: 0 12px 30px rgba(11, 31, 58, 0.08);
    --brand-navy: #0B1F3A;
    --brand-blue: #2563EB;
    --brand-white: #FFFFFF;
    --brand-blue-soft: #EFF6FF;
    --brand-blue-line: #BFDBFE;
    --brand-muted: #53657D;
  }

  html {
    scroll-padding-top: 78px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 15px;
    background: #FFFFFF;
    color: #0B1F3A;
  }

  body::before {
    display: none !important;
  }

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

  .container{
    width: calc(100% - (var(--mobile-gutter) * 2)) !important;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  section[id],
  main[id] {
    scroll-margin-top: 78px;
  }

  /* Compact, touch-friendly navigation */
  

  

  .brand {
    min-width: 0;
    max-width: calc(100% - 54px);
    flex: 1 1 auto;
    gap: 8px !important;
    font-size: 16px !important;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .brand-logo {
    width: 57px !important;
    max-width: 57px;
    max-height: 19px !important;
    height: auto;
    object-fit: contain;
    background: transparent;
  }

  .brand span {
    font-size: 16px;
    line-height: 1;
  }

  

  

  

  

  

  

  

  

  

  /* Hero becomes a clear, mobile-first introduction */
  .hero {
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.09), transparent 34%),
      linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .hero-grid > .reveal:first-child {
    width: 100%;
    text-align: left;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    gap: 7px;
    border-radius: 999px;
    background: #F4F7FF;
    border-color: #D7E5FA;
    color: #0B1F3A;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.085em;
  }

  .eyebrow .dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
  }

  .hero h1 {
    max-width: 100%;
    margin: 19px 0 15px;
    color: #0B1F3A;
    font-size: clamp(38px, 10.3vw, 49px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    overflow-wrap: normal;
  }

  .hero h1 .accent {
    display: block;
    margin-top: 2px;
    background: linear-gradient(95deg, #0B1F3A 0%, #2563EB 85%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  .hero p {
    max-width: 100%;
    margin: 0 0 22px;
    color: #53657D;
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 440px;
    gap: 10px;
    margin: 0;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .btn-primary {
    color: #FFFFFF;
    background: #2563EB;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  }

  .btn-ghost {
    color: #0B1F3A;
    border-color: #D5DFEC;
    background: #FFFFFF;
  }

  

  

  /* Simplified technology illustration: avoids overlapping floating cards */
  .hero-visual {
    display: block;
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    margin: 27px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: linear-gradient(135deg, #0B1F3A 0%, #143866 60%, #2563EB 130%);
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.17);
    transform: none !important;
    transform-style: flat;
    backface-visibility: hidden;
  }

  .hero-visual::after {
    content: "WEBSITES  ·  SOFTWARE  ·  INFRASTRUCTURE";
    position: absolute;
    z-index: 4;
    right: 10px;
    bottom: 17px;
    left: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .hero-visual .telemetry-particles {
    inset: 0;
    opacity: 0.55;
  }

  .hero-visual .telemetry-particles span {
    background: #93C5FD;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.08), 0 0 14px rgba(147, 197, 253, 0.2);
  }

  .hero-visual .orbit {
    top: 45%;
    left: 50%;
    width: 174px;
    height: 174px;
    border-color: rgba(219, 234, 254, 0.25);
    transform: translate(-50%, -50%);
  }

  .hero-visual .orbit::after {
    inset: 19px;
    border-color: rgba(219, 234, 254, 0.2);
  }

  .hero-visual .core {
    top: 45%;
    left: 50%;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  }

  .hero-visual .core-inner {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .hero-visual .core-inner::before {
    inset: 13px 8px;
  }

  .hero-visual .core-inner::after {
    inset: 8px 13px;
  }

  .hero-visual .core-label {
    font-size: 13px;
  }

  .hero-visual .data-card {
    display: none !important;
  }

  /* Readable section rhythm and compact content cards */
  .section {
    padding: 62px 0;
  }

  .section-kicker {
    margin-bottom: 12px;
  }

  .section-title {
    max-width: 100%;
    margin: 0 auto 14px;
    font-size: clamp(29px, 7.8vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.048em;
    overflow-wrap: anywhere;
  }

  .section-title br {
    display: block;
  }

  .section-sub {
    max-width: 100%;
    margin: 0 auto 28px;
    font-size: 14.5px;
    line-height: 1.72;
  }

  .section-tag-dark {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .problem-grid,
  .solution-wrap,
  .services-grid,
  .process-grid,
  .use-grid,
  .trust-grid,
  .leadership-grid,
  .project-review-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 28px !important;
  }

  .problem-card,
  .solution-card,
  .service,
  .use-main,
  .trust-card,
  .director-card,
  .project-review-card {
    min-width: 0;
    min-height: 0;
    border-radius: var(--mobile-card-radius);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.055);
  }

  .problem-card,
  .solution-card,
  .service,
  .use-main,
  .trust-card {
    padding: 21px;
  }

  .problem-head {
    gap: 12px;
  }

  .problem-num {
    font-size: 27px;
  }

  .problem-card h3 {
    margin: 18px 0 8px;
    font-size: 20px;
    line-height: 1.25;
  }

  .problem-card > p,
  .solution-card p,
  .service p,
  .use-main p,
  .trust-card p {
    font-size: 14px;
    line-height: 1.68;
  }

  .micro {
    padding: 12px;
    border-radius: 12px;
  }

  .micro b {
    font-size: 12.5px;
  }

  .micro span {
    font-size: 12px;
    line-height: 1.55;
  }

  .solution-card {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .solution-card h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.28;
  }

  .solution-list {
    margin-top: 16px;
  }

  .solution-list li {
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .check {
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border-radius: 6px;
    font-size: 12px;
  }

  /* The comparison table remains usable with intentional horizontal scrolling */
  .matrix-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: 26px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .matrix-wrap::after {
    display: none !important;
  }

  .matrix {
    width: max-content;
    min-width: 690px;
    border-collapse: separate;
    border-spacing: 0;
  }

  .matrix th,
  .matrix td {
    padding: 13px 14px;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: top;
  }

  .matrix thead th {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.045em;
  }

  /* Service cards: simple vertical flow, clear tap and read targets */
  .service {
    padding: 23px 20px 18px;
    background: #FFFFFF;
  }

  .service-number {
    display: inline-block;
    padding-right: 52px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .service h3 {
    margin: 18px 0 8px;
    padding-right: 0;
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -0.025em;
  }

  .service p {
    margin: 0;
  }

  .service-foot {
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding-top: 14px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .service-foot > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .service-arrow {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
  }

  .service::before,
  .service-scan {
    animation: none !important;
  }

  .service:hover {
    transform: none;
  }

  /* Workflow is a clean vertical sequence on narrow screens */
  .process-grid {
    border-radius: 17px;
    overflow: hidden;
  }

  .process-grid::before,
  .process-animated::after {
    display: none !important;
  }

  .process-step,
  .process-step:nth-child(2) {
    min-height: 0;
    padding: 21px;
    border-right: 0 !important;
    border-bottom: 1px solid #294365;
  }

  .process-step:last-child {
    border-bottom: 0 !important;
  }

  .process-step h3 {
    margin: 15px 0 6px;
    font-size: 20px;
  }

  .process-step p {
    margin-bottom: 0;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .use-main h3 {
    margin: 10px 0;
    font-size: 23px;
    line-height: 1.2;
  }

  .pill-row {
    gap: 7px;
    margin-bottom: 18px;
  }

  .pill {
    padding: 7px 10px;
    font-size: 12px;
  }

  .case-list {
    gap: 10px;
    margin-top: 19px;
  }

  .case {
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .case b {
    font-size: 13px;
    line-height: 1.45;
  }

  .case span {
    font-size: 12px;
    line-height: 1.55;
  }

  .stat-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .stat {
    padding: 21px;
    border-radius: 17px;
  }

  .stat .big {
    font-size: 36px;
  }

  .trust-card {
    padding: 22px;
    border-top-width: 3px;
  }

  .trust-card h3 {
    margin: 18px 0 7px;
    font-size: 21px;
    line-height: 1.25;
  }

  .trust-badge {
    font-size: 12px;
  }

  /* Project / work cards */
  .project-review-card {
    overflow: hidden;
  }

  .project-image-visual {
    height: 180px !important;
    min-height: 180px;
  }

  .project-review-body {
    padding: 19px !important;
  }

  .project-review-body h3 {
    font-size: 20px;
    line-height: 1.28;
  }

  .project-review-body p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .project-points {
    flex-wrap: wrap;
    gap: 7px;
  }

  .project-points span {
    max-width: 100%;
    font-size: 12px;
  }

  .project-note {
    line-height: 1.6;
  }

  /* Leadership cards have less empty space and portraits remain in-frame */
  .leadership-grid {
    max-width: 560px;
  }

  .director-card {
    padding-bottom: 22px;
  }

  .director-banner {
    height: 158px !important;
  }

  .director-photo {
    width: 126px !important;
    height: 126px !important;
    max-width: 126px;
    max-height: 126px;
    border-radius: 22px !important;
    border-width: 4px !important;
    object-fit: cover !important;
    object-position: center 18% !important;
  }

  .director-content {
    padding: 23px 20px 0 !important;
    text-align: center;
  }

  .director-content h3 {
    font-size: 22px;
    line-height: 1.25;
  }

  .director-role {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  .director-focus {
    max-width: 100%;
    margin: 14px auto 13px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .director-content p {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .linkedin-btn {
    min-height: 45px;
    margin-top: 17px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .director-note {
    margin-top: 15px;
    padding-top: 13px;
    font-size: 12px;
    line-height: 1.5;
  }

  /* Contact area: one obvious primary action, buttons sized for thumbs */
  .cta {
    padding: 56px 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.25), transparent 42%),
      linear-gradient(145deg, #0B1F3A 0%, #102B4D 100%);
  }

  .cta h2 {
    max-width: 100%;
    margin: 0 auto 15px;
    font-size: clamp(31px, 8.1vw, 40px);
    line-height: 1.07;
    letter-spacing: -0.048em;
  }

  .cta p {
    max-width: 100%;
    margin: 0 auto 23px;
    color: #D4DFEF;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .cta .hero-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .cta .btn-ghost {
    color: #FFFFFF;
    border-color: rgba(219, 234, 254, 0.35);
    background: rgba(255, 255, 255, 0.07);
  }

  .contact-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 19px;
    font-size: 12px;
    line-height: 1.5;
  }

  .contact-mini span {
    display: none;
  }

  .contact-mini a {
    overflow-wrap: anywhere;
  }

  .cta-status {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.09em;
    line-height: 1.5;
  }

  /* A compact footer with readable contact details */
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  /* Avoid expensive decorative effects and accidental page-wide overflow */
  .matrix-wrap,
  .project-review-card,
  .director-card,
  .service,
  .solution-card {
    transform: none !important;
  }

  .service::after,
  .solution-card::after,
  .matrix-wrap::after {
    animation: none !important;
  }
}

@media screen and (max-width: 390px) {
  :root {
    --mobile-gutter: 15px;
  }

  

  .brand-logo {
    width: 49px !important;
    max-width: 49px;
    max-height: 17px !important;
  }

  .brand {
    gap: 7px !important;
  }

  .brand span {
    font-size: 15px;
  }

  .hero-grid {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(35px, 10vw, 39px);
  }

  .section {
    padding: 54px 0;
  }

  .section-title {
    font-size: 29px;
  }

  .problem-card,
  .solution-card,
  .service,
  .use-main,
  .trust-card {
    padding: 18px;
  }

  .director-content {
    padding-right: 17px !important;
    padding-left: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .hero-visual *, .service *, .solution-card *, .stat, .cta::before, .cta::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Final mobile-only footer redesign: compact, thumb-friendly and intentionally different from desktop */
@media screen and (max-width: 767px) {
  

  

  

  /* Logo and wordmark sit in one compact row instead of repeating the desktop stack. */
  

  

  

  

  

  

  

  

  /* Status and LinkedIn share one row to save vertical space on phone screens. */
  

  

  

  

  

  

  

  

  

  

  

  

  

  /* Contact details already appear above as large tap targets; don't duplicate them. */
  
}

@media screen and (max-width: 390px) {
  

  

  

  

  

  
}

/* FINAL MOBILE POLISH — keep all five service chips on one line */
@media screen and (max-width: 767px) {
  

  

  /* Disable the desktop separator dots on phones. */
  

  /* Keep the visual close to the single compact chip row. */
  .hero .hero-visual {
    margin-top: 14px !important;
  }

  /* The primary CTA stays arrow-free on mobile and desktop. */
  .hero .hero-actions .btn-primary span {
    display: none !important;
    animation: none !important;
  }
}
