/*
Theme Name: Artesa Trading
Theme URI: https://www.artesa.co.za/
Author: Kuta / Codex
Author URI: https://www.artesa.co.za/
Description: Custom editable WordPress theme for Artesa Trading (Pty) Ltd, based on the approved static website design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artesa-trading
*/

:root {
  --ink: #052d43;
  --ink-2: #082234;
  --paper: #f4f8fb;
  --white: #ffffff;
  --muted: #647889;
  --line: rgba(5, 45, 67, 0.13);
  --cyan: #3db7dc;
  --blue: #31598f;
  --navy: #052d43;
  --black: #0b0d0f;
  --panel: rgba(0, 0, 0, 0.72);
  --ice: #eaf7fc;
  --steel: #d8e9f0;
  --shadow: 0 24px 60px rgba(5, 45, 67, 0.16);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.25rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.05rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(61, 183, 220, 0.22);
  background: rgba(0, 0, 0, 0.84);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(61, 183, 220, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(61, 183, 220, 0.12), rgba(49, 89, 143, 0.18)),
    #050607;
  color: var(--white);
  font-weight: 900;
}

.brand-mark img {
  display: block;
  width: 44px;
  max-width: none;
  transform: translateY(2px);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-color: rgba(61, 183, 220, 0.34);
  background: rgba(61, 183, 220, 0.12);
  color: var(--white);
}

.site-nav-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list li {
  display: contents;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(61, 183, 220, 0.36);
  border-radius: 8px;
  background: rgba(61, 183, 220, 0.1);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #050607;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #050607);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 45, 67, 0.94) 0%, rgba(5, 45, 67, 0.74) 40%, rgba(49, 89, 143, 0.22) 78%),
    linear-gradient(180deg, rgba(5, 45, 67, 0.1), rgba(5, 45, 67, 0.62)),
    url("assets/artesa-telecom-hero.png") center / cover no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.profile-cover {
  min-height: min(760px, calc(100svh - var(--header-height)));
}

.profile-cover::after {
  height: 28%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #050607);
}

.profile-cover .hero-backdrop {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.24) 46%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.46)),
    image-set(url("assets/artesa-hero-sharp.jpg") 1x, url("assets/artesa-hero-sharp-2x.jpg") 2x) center / cover no-repeat;
}

.profile-cover-content {
  display: grid;
  min-height: min(760px, calc(100svh - var(--header-height)));
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: clamp(70px, 8vw, 100px) 0 clamp(36px, 6vw, 64px);
  text-align: center;
}

.profile-actions {
  position: relative;
  z-index: 2;
  justify-content: center;
  max-width: 1160px;
  margin-top: 0;
}

.profile-lockup {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px clamp(24px, 4vw, 46px);
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  text-transform: uppercase;
}

.profile-mark {
  display: block;
  width: clamp(180px, 21vw, 300px);
  aspect-ratio: 1;
  overflow: hidden;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.62));
}

.profile-mark img {
  display: block;
  width: 100%;
  max-width: none;
}

.profile-wordmark {
  text-align: left;
}

.profile-wordmark h1 {
  color: var(--white);
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  font-weight: 950;
  line-height: 0.86;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.58);
}

.profile-wordmark span {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 14px 24px rgba(0, 0, 0, 0.58);
}

.profile-lockup p {
  grid-column: 1 / -1;
  max-width: 980px;
  color: var(--white);
  font-size: clamp(1.12rem, 2.1vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.72);
}

.hero-content {
  min-height: calc(100svh - var(--header-height) - 80px);
  padding: clamp(80px, 10vw, 118px) 0 clamp(52px, 8vw, 74px);
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 780px;
  margin-top: 20px;
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.14;
}

.hero-copy {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-actions,
.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 18px 38px rgba(49, 89, 143, 0.3);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-facts {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-facts div {
  padding: 18px;
  background: rgba(5, 45, 67, 0.62);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--white);
  font-weight: 900;
}

.section {
  padding: clamp(72px, 9vw, 116px) 0;
  background: var(--paper);
}

.signal-band {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 14, 24, 0.88) 46%, rgba(5, 45, 67, 0.76) 100%),
    url("assets/artesa-server-bg.jpg") center right / cover no-repeat,
    #050607;
  color: var(--white);
  border-block: 1px solid rgba(61, 183, 220, 0.26);
}

.signal-band::after {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 64px);
  width: 180px;
  height: 140px;
  content: "";
  background-image: radial-gradient(circle, rgba(61, 183, 220, 0.88) 0 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.46;
  pointer-events: none;
}

.signal-band .container {
  position: relative;
  z-index: 1;
}

.split-grid,
.proof-grid,
.project-format,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.split-grid h2,
.proof-grid h2,
.project-format h2,
.cta-wrap h2 {
  max-width: 820px;
}

.split-grid p,
.proof-grid p,
.page-hero p,
.copy-block p,
.project-format p {
  color: var(--muted);
  font-size: 1.05rem;
}

.signal-band .split-grid p,
.signal-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.signal-band .eyebrow {
  color: var(--cyan);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 183, 220, 0.18), rgba(49, 89, 143, 0.1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 40px),
    #020304;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.video-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.12) 34%, transparent 36%),
    radial-gradient(circle at 82% 24%, rgba(61, 183, 220, 0.32), transparent 30%);
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.video-placeholder strong {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.video-placeholder small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.play-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.play-symbol::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-block: 14px solid transparent;
  border-left: 22px solid var(--white);
  content: "";
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
  text-align: center;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid.compact {
  align-items: stretch;
}

.service-card,
.values-grid article,
.portfolio-grid article,
.contact-panel,
.contact-form,
.fact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 16, 19, 0.07);
}

.service-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: rgba(61, 183, 220, 0.46);
  box-shadow: 0 22px 50px rgba(5, 45, 67, 0.13);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 183, 220, 0.18), rgba(49, 89, 143, 0.16));
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.service-card p,
.values-grid p,
.portfolio-grid p,
.contact-panel p,
.contact-form p {
  color: var(--muted);
}

.core-services-stage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.94), rgba(10, 12, 14, 0.92)),
    url("assets/artesa-server-bg.jpg") center / cover no-repeat,
    #090b0d;
  color: var(--white);
}

.core-services-stage::before {
  position: absolute;
  bottom: clamp(18px, 4vw, 56px);
  left: clamp(18px, 5vw, 70px);
  width: 180px;
  height: 92px;
  border: solid var(--cyan);
  border-width: 0 0 5px 5px;
  content: "";
  opacity: 0.9;
  transform: skewX(-28deg);
}

.core-services-stage::after {
  position: absolute;
  top: 18%;
  left: min(46vw, 780px);
  width: 2px;
  height: 64%;
  content: "";
  background: var(--cyan);
  opacity: 0.9;
}

.core-services-stage .container {
  position: relative;
  z-index: 1;
}

.core-services-stage .section-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 7vw, 104px);
  align-items: end;
  margin-bottom: 36px;
  text-align: left;
}

.core-services-stage .section-heading h2 {
  font-size: clamp(4rem, 10vw, 7.8rem);
  font-weight: 400;
  letter-spacing: 0;
}

.core-services-stage .section-heading p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.32;
}

.core-services-stage .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 790px;
  margin-left: auto;
}

.core-services-stage .service-card,
.services-stage .service-row,
.portfolio-stage .portfolio-grid article,
.contact-stage .contact-panel,
.contact-stage .contact-form,
.profile-values .values-grid article {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  box-shadow: none;
}

.core-services-stage .service-card:hover,
.services-stage .service-row:hover,
.portfolio-stage .portfolio-grid article:hover {
  border-color: var(--cyan);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.core-services-stage .service-card p,
.services-stage .service-row p,
.portfolio-stage .portfolio-grid p,
.contact-stage .contact-panel p,
.contact-stage .contact-form p,
.profile-values .values-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.core-services-stage .service-icon,
.services-stage .service-icon {
  border: 1px solid rgba(61, 183, 220, 0.76);
  background: rgba(61, 183, 220, 0.08);
  color: var(--cyan);
}

.contrast {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(5, 45, 67, 0.86)),
    url("assets/artesa-server-bg.jpg") center / cover no-repeat,
    #050607;
  color: var(--white);
  border-block: 1px solid rgba(61, 183, 220, 0.22);
}

.contrast::after {
  position: absolute;
  right: clamp(16px, 5vw, 70px);
  bottom: clamp(18px, 4vw, 48px);
  width: 150px;
  height: 110px;
  content: "";
  background-image: radial-gradient(circle, rgba(61, 183, 220, 0.86) 0 3px, transparent 3.5px);
  background-size: 20px 20px;
  opacity: 0.36;
  pointer-events: none;
}

.contrast .container {
  position: relative;
  z-index: 1;
}

.contrast .section-heading p,
.contrast .proof-grid p,
.contrast .project-format p {
  color: rgba(255, 255, 255, 0.72);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  content: "";
}

.check-list li::after {
  position: absolute;
  top: 21px;
  left: 24px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  content: "";
  transform: rotate(45deg);
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(5, 45, 67, 0.86)),
    #050607;
  color: var(--white);
  border-top: 1px solid rgba(61, 183, 220, 0.22);
}

.cta-section::before {
  position: absolute;
  top: 50%;
  right: max(16px, calc((100vw - 1160px) / 2));
  width: clamp(180px, 24vw, 320px);
  aspect-ratio: 883 / 1280;
  content: "";
  background: url("assets/artesa-logo-black.png") center / contain no-repeat;
  filter: invert(1);
  opacity: 0.08;
  transform: translateY(-50%);
}

.cta-wrap {
  position: relative;
  justify-content: space-between;
  gap: 28px;
}

.cta-wrap h2 {
  flex: 1 1 620px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 12vw, 140px) 0 clamp(50px, 7vw, 78px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 38%, rgba(5, 45, 67, 0.52) 100%),
    url("assets/artesa-server-bg.jpg") center right / cover no-repeat;
  color: var(--white);
  border-bottom: 1px solid rgba(61, 183, 220, 0.24);
}

.page-hero::after {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(20px, 5vw, 72px);
  width: 170px;
  height: 130px;
  content: "";
  background-image: radial-gradient(circle, rgba(61, 183, 220, 0.9) 0 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 400;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.copy-block {
  display: grid;
  gap: 18px;
}

.copy-block > * {
  max-width: 100%;
}

.copy-block ul,
.copy-block ol {
  margin: 0;
  padding-left: 1.4rem;
}

.copy-block a {
  color: var(--blue);
  font-weight: 800;
}

.profile-story {
  background:
    linear-gradient(90deg, rgba(244, 248, 251, 0.96), rgba(234, 247, 252, 0.9)),
    var(--paper);
}

.fact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.fact-panel div {
  min-height: 132px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.fact-panel div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fact-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fact-panel strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.18;
}

.values-grid,
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid article {
  padding: 26px;
}

.profile-values .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.values-grid h3,
.portfolio-grid h2 {
  margin-bottom: 12px;
}

.service-list {
  display: grid;
  gap: 18px;
}

.services-stage,
.portfolio-stage,
.contact-stage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.96), rgba(4, 5, 7, 0.94)),
    url("assets/artesa-server-bg.jpg") center / cover fixed no-repeat,
    #050607;
  color: var(--white);
}

.services-stage::before,
.portfolio-stage::before,
.contact-stage::before {
  position: absolute;
  top: clamp(24px, 5vw, 72px);
  left: clamp(20px, 6vw, 90px);
  width: 170px;
  height: 82px;
  border: solid rgba(61, 183, 220, 0.88);
  border-width: 0 0 5px 5px;
  content: "";
  opacity: 0.78;
  pointer-events: none;
  transform: skewX(-28deg);
}

.services-stage .container,
.portfolio-stage .container,
.contact-stage .container {
  position: relative;
  z-index: 1;
}

.service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 14px 34px rgba(7, 16, 19, 0.07);
  scroll-margin-top: calc(var(--header-height) + 18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.services-stage .service-row:hover {
  transform: translateY(-3px);
}

.service-row h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.service-row p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(61, 183, 220, 0.34);
  border-radius: 8px;
  background: rgba(61, 183, 220, 0.09);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 11px;
}

.note {
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.92rem;
}

.services-stage .tag-list li {
  border-color: rgba(61, 183, 220, 0.6);
  background: rgba(61, 183, 220, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.services-stage .note,
.contact-stage .note {
  color: var(--cyan);
}

.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-grid article {
  min-height: 226px;
  padding: 24px;
}

.portfolio-grid span {
  display: inline-flex;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 950;
  margin-bottom: 28px;
}

.portfolio-grid h2 {
  font-size: 1.25rem;
}

.portfolio-stage .portfolio-grid article {
  min-height: 248px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-stage .portfolio-grid article:hover {
  transform: translateY(-4px);
}

.portfolio-stage .portfolio-grid span {
  color: var(--cyan);
}

.contact-grid {
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.contact-panel h2,
.contact-panel h3 {
  margin-bottom: 18px;
}

.contact-panel h3 {
  margin-top: 34px;
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hours-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.hours-list span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 900;
}

.contact-stage label {
  color: var(--white);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefe;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

.contact-stage input,
.contact-stage select,
.contact-stage textarea {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(61, 183, 220, 0.16);
  outline: none;
}

.form-status {
  min-height: 24px;
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  background: #031f30;
  color: var(--white);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.5fr));
  gap: 30px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer h2 {
  font-size: 0.86rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .note {
  color: rgba(61, 183, 220, 0.78);
}

@media (max-width: 980px) {
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .proof-grid,
  .project-format,
  .contact-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .profile-cover,
  .profile-cover-content {
    min-height: min(680px, calc(100svh - var(--header-height)));
  }

  .core-services-stage .section-heading {
    grid-template-columns: 1fr;
  }

  .core-services-stage::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(5, 45, 67, 0.97);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.6rem);
  }

  .hero-content {
    padding: 56px 0 28px;
  }

  .profile-cover,
  .profile-cover-content {
    min-height: 74svh;
  }

  .profile-cover .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72)),
      image-set(url("assets/artesa-hero-sharp.jpg") 1x, url("assets/artesa-hero-sharp-2x.jpg") 2x) 60% center / cover no-repeat;
  }

  .profile-cover-content {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    padding: 0 0 22px;
    text-align: center;
  }

  .profile-lockup {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    width: min(100%, 350px);
    padding-top: 16px;
  }

  .profile-mark {
    display: block;
    width: min(48vw, 190px);
    aspect-ratio: 1;
    overflow: hidden;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.58));
  }

  .profile-wordmark {
    text-align: center;
  }

  .profile-wordmark h1 {
    font-size: clamp(2.4rem, 14vw, 3.7rem);
    line-height: 0.92;
  }

  .profile-wordmark span {
    margin-top: 6px;
    font-size: clamp(1.02rem, 5vw, 1.42rem);
  }

  .profile-lockup p {
    margin-top: 6px;
    font-size: 0.92rem;
    max-width: 330px;
  }

  .profile-actions {
    gap: 8px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-facts div {
    padding: 12px 10px;
  }

  .hero-facts dt {
    font-size: 0.66rem;
  }

  .hero-facts dd {
    font-size: 0.82rem;
    line-height: 1.18;
    white-space: nowrap;
  }

  .service-grid,
  .portfolio-grid,
  .form-grid,
  .fact-panel {
    grid-template-columns: 1fr;
  }

  .core-services-stage .section-heading h2 {
    font-size: clamp(3.2rem, 17vw, 4.7rem);
  }

  .core-services-stage .service-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .services-stage,
  .portfolio-stage,
  .contact-stage {
    background-attachment: scroll;
  }

  .fact-panel div,
  .fact-panel div:nth-child(odd) {
    border-right: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .video-shell {
    min-height: 210px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
