/* Norsa Technologies — the corporate page (norsa.php, /norsa). Its own identity, independent of every other page:
   a cool paper ground, deep Norsa green for the statement sections and the close, IBM Plex Serif for headings and
   Plex Sans for reading (self-hosted, SIL OFL, assets/fonts/norsa). The two colours of the official logo (blue #3B7CF2,
   green #2FA35B) appear only as signals in the artwork.
   Concept: order from complexity. The hero artwork's tangled strands settle into two ordered bundles, offset like the
   logo's two steps; the same quiet signal runs along the approach loop and the India and Kuwait arc.
   Motion: drawn once on load, then one slow pulse per artwork. All of it is CSS and switches off under reduced motion. */

@font-face { font-family: 'Plex Serif'; src: url('assets/fonts/norsa/ibm-plex-serif-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Serif'; src: url('assets/fonts/norsa/ibm-plex-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Serif'; src: url('assets/fonts/norsa/ibm-plex-serif-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('assets/fonts/norsa/ibm-plex-sans-100_700-normal.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F5F1;
  --mist: #E7EBE5;
  --ink: #111613;
  --muted: #535C56;
  --line: #CFD6CF;
  --label: #1A6542;          /* green dark enough for text on paper */
  --green: #0C3B2E;          /* deep Norsa green: statement sections, contact, footer */
  --on-green: #EEF4F0;
  --on-green-muted: #B2C9BE;
  --on-green-line: rgb(238 244 240 / 0.2);
  --on-green-label: #8FD4AB;
  --logo-blue: #3B7CF2;
  --logo-green: #2FA35B;

  --serif: 'Plex Serif', Georgia, serif;
  --sans: 'Plex Sans', system-ui, sans-serif;
  --h1: clamp(2.35rem, 1.6rem + 2.5vw, 4rem);
  --h2: clamp(1.7rem, 1.35rem + 1.2vw, 2.55rem);
  --statement: clamp(1.9rem, 1.4rem + 1.7vw, 3.1rem);
  --h3: clamp(1.15rem, 1.08rem + 0.25vw, 1.3rem);
  --body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --small: 0.875rem;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-padding-top: 5rem; scroll-behavior: smooth; background: var(--paper); -webkit-text-size-adjust: none; text-size-adjust: none; }
body { font-family: var(--sans); font-size: var(--body); line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
.n-green :focus-visible, .n-footer :focus-visible { outline-color: var(--on-green); }

.n-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.n-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--green); color: var(--on-green); text-decoration: none; }
.n-skip:focus { top: 1rem; }

/* Header */
.n-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.n-bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 4.25rem; }
.n-brand { display: block; padding: 6px 10px; margin: -6px -10px; border-radius: 6px; transition: background-color 0.25s; }
.n-brand img { width: 150px; }
.n-brand:hover { background: var(--mist); }
.n-nav { display: flex; align-items: center; gap: 1.6rem; font-size: var(--small); font-weight: 500; }
.n-nav a { text-decoration: none; padding-block: 0.35rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.n-nav a:hover { background-size: 100% 1px; }
.n-nav .n-nav-cta { padding: 0.5rem 1.05rem; background: var(--green); color: var(--on-green); border: 1px solid var(--green); transition: background-color 0.25s, color 0.25s; }
.n-nav .n-nav-cta:hover { background: transparent; color: var(--green); }
.n-menu { display: none; }

@media (max-width: 939px) {
  .n-nav { display: none; }
  .n-menu { display: block; }
  .n-menu summary { list-style: none; display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; cursor: pointer; }
  .n-menu summary::-webkit-details-marker { display: none; }
  .n-menu summary span { display: block; height: 2px; background: var(--ink); transition: rotate 0.25s, translate 0.25s; }
  .n-menu[open] summary span:first-child { translate: 0 4px; rotate: 45deg; }
  .n-menu[open] summary span:last-child { translate: 0 -4px; rotate: -45deg; }
  .n-menu-panel { position: fixed; inset: 4.25rem 0 auto 0; display: grid; padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 32px -28px rgb(17 22 19 / 0.45); }
  .n-menu-panel a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
  .n-menu-panel a:last-child { border-bottom: 0; color: var(--label); }
}

/* Buttons and links */
.n-arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.35s var(--ease); }
.n-btn { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 48px; padding: 0.8rem 1.35rem; font-size: var(--small); font-weight: 500; text-decoration: none; background: var(--green); color: var(--on-green); border: 1px solid var(--green); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.n-btn:hover { background: transparent; color: var(--green); }
.n-btn:hover .n-arrow { translate: 4px 0; }
.n-btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.n-btn-line:hover { background: var(--ink); color: var(--paper); }

/* Shared section type */
.n-sec { padding-block: clamp(4rem, 8vw, 7rem); }
.n-mist { background: var(--mist); }
.n-green { background: var(--green); color: var(--on-green); }
.n-label { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--label); }
.n-label::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.n-green .n-label { color: var(--on-green-label); }
.n-sec h2 { font-size: var(--h2); line-height: 1.16; letter-spacing: -0.012em; max-width: 26ch; }
.n-sec .n-statement { font-size: var(--statement); line-height: 1.12; letter-spacing: -0.018em; max-width: 21ch; }
.n-intro, .n-body { margin-top: 1.25rem; max-width: 58ch; color: var(--muted); }
.n-green .n-body { color: var(--on-green-muted); }
.n-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* A. Hero: the statement and its supporting text on one baseline, then the artwork across the full width. */
.n-hero { padding-top: clamp(3rem, 7vw, 6rem); }
.n-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; }
.n-eyebrow { font-size: var(--small); font-weight: 500; color: var(--muted); margin-bottom: 1.5rem; }
.n-hero h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -0.025em; max-width: 15ch; }
.n-hero h1 em { font-style: italic; color: var(--label); }
.n-lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.n-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.n-art { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.n-art-svg { width: 100%; height: clamp(200px, 27.5vw, 430px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.n-art-svg path { fill: none; stroke-linecap: round; }
.n-art-tangle path { stroke: var(--ink); stroke-opacity: 0.4; stroke-width: 1.3; stroke-dasharray: 1; animation: n-draw 1.9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.n-art-order path { stroke-width: 2.6; stroke-dasharray: 1; animation: n-draw 1.3s var(--ease) both; animation-delay: calc(950ms + var(--i) * 60ms); }
.n-art .n-g { stroke: var(--logo-green); }
.n-art .n-b { stroke: var(--logo-blue); }
.n-art-pulse path { stroke-width: 6; stroke-dasharray: 0.05 1.05; animation: n-run 7s linear 2.6s infinite both; }
.n-art-pulse path + path { animation-delay: 6.1s; }
.n-art figcaption { padding-block: 1.1rem 0; font-size: 0.8125rem; color: var(--muted); }
@keyframes n-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes n-run { from { stroke-dashoffset: 0.05; } to { stroke-dashoffset: -1; } }

/* B. Philosophy: the statement on the left edge, the four beliefs set into the right two thirds. */
.n-guides-lead { max-width: 52ch; }
.n-beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem clamp(2rem, 5vw, 4.5rem); margin: clamp(3rem, 6vw, 4.5rem) 0 0 calc(100% / 3); }
.n-beliefs li { padding-top: 1.25rem; border-top: 1px solid var(--on-green-line); }
.n-beliefs h3 { font-size: var(--h3); line-height: 1.3; }
.n-beliefs p { margin-top: 0.6rem; color: var(--on-green-muted); }

/* C. Story */
.n-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.n-prose { margin-top: 2rem; max-width: 62ch; }
.n-prose p + p { margin-top: 1.1rem; }
.n-prose p:first-child { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); color: var(--ink); }
.n-prose p:not(:first-child) { color: var(--muted); }
.n-record { position: sticky; top: 6.5rem; border-top: 2px solid var(--green); }
.n-record div { padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.n-record dt { font-size: 0.8125rem; color: var(--muted); }
.n-record dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.35; }

/* D. What we do: six capabilities on an open grid of rules. */
.n-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3.5rem); }
.n-caps li { padding: 1.6rem 0 2.25rem; border-top: 1px solid var(--line); }
.n-caps li:nth-child(-n+3) { border-top-color: var(--ink); }
.n-caps h3 { font-size: var(--h3); line-height: 1.3; }
.n-caps p { margin-top: 0.65rem; color: var(--muted); }

/* E. How we work: five stages on one line, and a return line from the last to the first. */
.n-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.n-stages li { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.n-stage-no { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--label); }
.n-stages h3 { margin-top: 0.9rem; font-size: var(--h3); }
.n-stages p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); }
.n-return { height: 44px; margin: 1.75rem 0 0; border: 1px dashed rgb(17 22 19 / 0.4); border-top: 0; border-radius: 0 0 20px 20px; }
.n-return-note { margin-top: 0.9rem; font-size: var(--small); color: var(--muted); text-align: center; }

/* F. Where we operate */
.n-presence { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.n-places { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.n-places li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.n-dot { width: 14px; height: 14px; margin-top: 0.4rem; border-radius: 50%; border: 3px solid var(--logo-blue); }
.n-dot-office { background: var(--logo-green); border-color: var(--logo-green); }
.n-places h3 { font-size: var(--h3); }
.n-places p { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted); }
.n-places .n-coord { font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.n-map { margin: 0; }
.n-map-svg { width: 100%; height: auto; }
.n-grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.n-sea { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0.06em; fill: var(--muted); text-anchor: middle; }
.n-arc { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.n-arc-pulse { fill: none; stroke: var(--logo-green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.06 1.06; animation: n-run 6s linear 1s infinite both; }
.n-mk { fill: var(--paper); stroke: var(--logo-blue); stroke-width: 3.5; }
.n-mk-office { fill: var(--logo-green); stroke: var(--logo-green); }
.n-map figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }

/* G. Contact: details on the left, the three ways to begin on the right. */
.n-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.n-details { margin-top: 2.25rem; }
.n-details div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-top: 1px solid var(--on-green-line); }
.n-details dt { font-size: 0.8125rem; color: var(--on-green-muted); padding-top: 0.2rem; }
.n-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.n-details a { display: inline-block; min-height: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-thickness 0.2s; }
.n-details a:hover { text-decoration-thickness: 2px; }
.n-enquiries { border-bottom: 1px solid var(--on-green-line); }
.n-enquiries a { display: grid; gap: 0.35rem; padding: 1.6rem 0.25rem; border-top: 1px solid var(--on-green-line); text-decoration: none; transition: background-color 0.3s, padding 0.35s var(--ease); }
.n-enq-title { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); line-height: 1.25; }
.n-enq-text { color: var(--on-green-muted); }
.n-enq-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: var(--small); font-weight: 600; color: var(--on-green-label); }
.n-enquiries a:hover { background: rgb(238 244 240 / 0.06); padding-inline: 1rem 0.5rem; }
.n-enquiries a:hover .n-arrow { translate: 5px 0; }

/* Footer: continues the contact green. */
.n-footer { background: var(--green); color: var(--on-green); }
.n-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--on-green-line); }
.n-footer-grid img { width: 150px; }
.n-footer-grid > div p { margin-top: 1rem; max-width: 38ch; font-size: var(--small); color: var(--on-green-muted); }
.n-footer nav { display: grid; align-content: start; gap: 0.35rem; font-size: var(--small); }
.n-footer h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--on-green-label); margin-bottom: 0.35rem; }
.n-footer nav a { width: fit-content; min-height: 24px; padding-block: 0.15rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.n-footer nav a:hover { background-size: 100% 1px; }
.n-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.75rem; padding-block: 1.25rem; border-top: 1px solid var(--on-green-line); font-size: 0.8125rem; color: var(--on-green-muted); }

/* Reduced motion: everything drawn and still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .n-art-tangle path, .n-art-order path { animation: none; }
  .n-art-pulse, .n-arc-pulse { display: none; }
  .n-art-pulse path { animation: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .n-story, .n-presence, .n-contact { grid-template-columns: minmax(0, 1fr); }
  .n-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .n-hero-side { padding-top: calc(0.875rem * 1.6 + 1.5rem); }
  .n-actions { display: grid; }
  .n-actions .n-btn { justify-content: center; }
  .n-beliefs { margin-left: 0; }
  .n-record { position: static; }
  .n-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-caps li:nth-child(3) { border-top-color: var(--line); }
  .n-stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .n-stages li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding: 1.25rem 0 1.5rem; border-top-color: var(--line); }
  .n-stages li:first-child { border-top-color: var(--ink); }
  .n-stage-no { grid-row: span 2; font-size: 1.75rem; }
  .n-stages h3 { margin-top: 0; }
  .n-return { display: none; }
  .n-return-note { text-align: left; padding-top: 1rem; border-top: 1px dashed var(--line); margin-top: 0; }
  .n-map { width: 100%; max-width: 32rem; margin-inline: auto; }
}

/* Phone */
@media (max-width: 759px) {
  .n-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .n-hero-side { padding-top: 0; }
  .n-actions { display: flex; }
}

@media (max-width: 699px) {
  .n-beliefs, .n-caps { grid-template-columns: minmax(0, 1fr); }
  .n-caps li:nth-child(n+2) { border-top-color: var(--line); }
  .n-beliefs { gap: 2rem; }
  .n-sea { display: none; }
  .n-details div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .n-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-footer-grid > div { grid-column: 1 / -1; }
}
