/* ==========================================================================
   ARCTEK Design System — Editorial / Studio Grade
   Clean. Structured. High-Performance.
   ========================================================================== */

:root {
  --navy: #07223d;
  --navy-deep: #041221;
  --navy-card: #092744;
  --blue: #166b96;
  --cyan: #38b4cf;
  --cyan-bright: #56d4ee;
  --cyan-glow: rgba(56, 180, 207, 0.16);
  --ink: #0d2338;
  --text-muted: #62778a;
  --text-dim: #9cb1c2;
  --line: #dce7ed;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-cyan: rgba(56, 180, 207, 0.35);
  --pale: #f4f8fa;
  --white: #ffffff;
  --max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --mono: "SF Mono", "Consolas", "Liberation Mono", Menlo, Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, textarea, select {
  font: inherit;
}

/* --------------------------------------------------------------------------
   Announcement Bar
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--navy-deep);
  color: #c9e0ec;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement a {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--cyan);
}

.announcement a:hover {
  color: var(--cyan-bright);
}

.pulse, .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39d2a6;
  box-shadow: 0 0 0 4px rgba(57, 210, 166, 0.2);
}

.live-dot.cyan-dot {
  background: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(56, 180, 207, 0.25);
}

/* --------------------------------------------------------------------------
   Navigation Header
   -------------------------------------------------------------------------- */
.header {
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: 100%;
  max-width: var(--max);
  padding: 0 28px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 172px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #375369;
}

.nav a:not(.nav-cta):hover, .footer a:hover {
  color: var(--blue);
}

.nav a.active {
  color: var(--blue);
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.nav-badge {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--pale);
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #0f395c;
  transform: translateY(-1px);
}

.nav-cta span {
  color: var(--cyan-bright);
}

.menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   Typography & Common Atoms
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: "Manrope", sans-serif;
  color: inherit;
  margin-top: 0;
}

.eyebrow, .section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow-line {
  height: 1px;
  width: 24px;
  background: var(--cyan);
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(100deg, #4ad2e4 0%, #6be5f3 40%, #2f94c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-pad {
  padding: 96px max(6vw, calc((100vw - var(--max)) / 2 + 28px));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 0;
}

.section-heading h2 span {
  color: var(--blue);
}

.section-heading > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 4px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.button-primary {
  background: linear-gradient(105deg, #37b7cf 0%, #1e7ba8 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(22, 107, 150, 0.25);
}

.button-primary span {
  font-size: 15px;
}

.button-quiet {
  color: #d1e5f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-dark {
  background: var(--navy);
  color: var(--white);
}

.button-dark:hover {
  background: #0f3759;
}

.button-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.button-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Hero Section (Refined Editorial Grid with Ambient Glow)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, #0a2d4a 0%, #07233e 35%, #041221 80%);
  color: var(--white);
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 180, 207, 0.4) 0%, transparent 70%);
  top: -120px;
  right: 10%;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 107, 150, 0.3) 0%, transparent 70%);
  bottom: -80px;
  left: 20%;
  animation: glowPulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
  0% { opacity: 0.25; transform: scale(1); }
  100% { opacity: 0.45; transform: scale(1.15); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 54%;
  max-width: 700px;
  padding: 80px 0 84px max(6vw, calc((100vw - var(--max)) / 2 + 28px));
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 180, 207, 0.1);
  border: 1px solid rgba(56, 180, 207, 0.22);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--cyan-bright);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-copy {
  font-size: 16px;
  line-height: 1.85;
  color: #b8cfdf;
  max-width: 520px;
  margin-bottom: 34px;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 480px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.metric-num span {
  color: var(--cyan-bright);
  font-size: 16px;
}

.metric-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8ba6b8;
  text-transform: uppercase;
}

/* Hero Visual — Stacked Project Showcase */
.hero-visual {
  position: absolute;
  width: 48%;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-showcase {
  position: relative;
  width: 380px;
  height: 420px;
}

.showcase-card {
  position: absolute;
  width: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 36, 61, 0.85);
  border: 1px solid rgba(56, 180, 207, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.showcase-label {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #a7c2d4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-card-1 {
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-3deg);
}

.showcase-card-2 {
  top: 60px;
  left: 50px;
  z-index: 2;
  transform: rotate(1.5deg);
}

.showcase-card-3 {
  top: 130px;
  left: 20px;
  z-index: 1;
  transform: rotate(-1deg);
}

.hero-showcase:hover .showcase-card-1 {
  transform: rotate(-4deg) translateY(-8px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.hero-showcase:hover .showcase-card-2 {
  transform: rotate(2.5deg) translateX(8px);
}

.hero-showcase:hover .showcase-card-3 {
  transform: rotate(-2deg) translateY(8px);
}

/* --------------------------------------------------------------------------
   Selected Portfolio Strip (Room & Pillar / studiors style)
   -------------------------------------------------------------------------- */
.portfolio-strip-section {
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
}

.strip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #8bcad7;
  box-shadow: 0 16px 36px rgba(13, 44, 70, 0.08);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #081d30;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .card-media img {
  transform: scale(1.02);
}

.card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 26, 45, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #c9e0ed;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.project-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf2f5;
}

.tech-tags span {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--pale);
  color: #496377;
  padding: 3px 7px;
  border-radius: 3px;
}

.card-action-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.card-action-bar span {
  color: var(--cyan);
  transition: transform 0.2s;
}

.project-card:hover .card-action-bar span {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Services & Solutions
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--white);
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-box {
  background: #fbfdfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-box:hover {
  border-color: #8ac9d6;
  box-shadow: 0 12px 30px rgba(10, 42, 66, 0.05);
}

.service-box.featured-box {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.service-box.featured-box p {
  color: #b5cddc;
}

.service-icon-glyph {
  font-size: 26px;
  color: var(--cyan);
  margin-bottom: 20px;
  display: inline-block;
}

.service-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-box p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.deliverables-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.featured-box .deliverables-list {
  border-color: rgba(255, 255, 255, 0.15);
}

.deliverables-list span {
  font-size: 10px;
  font-family: var(--mono);
  background: #ebf3f7;
  color: #3b5a70;
  padding: 4px 8px;
  border-radius: 3px;
}

.featured-box .deliverables-list span {
  background: rgba(255, 255, 255, 0.1);
  color: #d8edf7;
}

/* --------------------------------------------------------------------------
   The Method / Process Section (studiors 4-step inspired)
   -------------------------------------------------------------------------- */
.method-section {
  background: var(--navy-deep);
  color: var(--white);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.method-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, border-color 0.2s;
}

.method-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 180, 207, 0.4);
}

.method-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan-bright);
  margin-bottom: 16px;
}

.method-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.method-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #9ab4c7;
  margin-bottom: 20px;
}

.method-meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: #648197;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Interactive Multi-Step Contact Inquiry (studiors style)
   -------------------------------------------------------------------------- */
.contact-section {
  background: linear-gradient(135deg, #f2f7fa 0%, #e7f1f5 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.contact-info p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 30px;
}

.contact-direct-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.direct-link:hover {
  color: var(--blue);
}

.direct-link span {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Multi-Step Form Container */
.stepper-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 18px 45px rgba(10, 36, 61, 0.06);
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf3f6;
}

.stepper-counter {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.stepper-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.stepper-progress-bar {
  height: 3px;
  background: #edf2f5;
  border-radius: 2px;
  margin-bottom: 26px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.3s ease;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: #385165;
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdfe;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 107, 150, 0.12);
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Radio Choice Pills */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
}

.choice-pill span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fbfdfe;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #3f586c;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.choice-pill input:checked + span {
  border-color: var(--blue);
  background: rgba(56, 180, 207, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #edf3f6;
}

.form-status-msg {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  color: var(--blue);
  min-height: 18px;
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   Dedicated Portfolio Page Styles — Clean, Neat, Studio Editorial
   -------------------------------------------------------------------------- */
.portfolio-hero {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(56, 180, 207, 0.12) 0%, rgba(244, 248, 250, 0.4) 60%, #ffffff 100%);
  color: var(--ink);
  padding: 88px max(6vw, calc((100vw - var(--max)) / 2 + 28px)) 54px;
  border-bottom: 1px solid rgba(13, 35, 56, 0.06);
  position: relative;
}

.portfolio-hero-inner {
  max-width: 820px;
}

.portfolio-hero .eyebrow {
  color: var(--blue);
  margin-bottom: 18px;
}

.portfolio-hero .eyebrow-line {
  background: var(--cyan);
}

.portfolio-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.portfolio-hero h1 .gradient-text {
  background: linear-gradient(110deg, #166b96 0%, #38b4cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-hero p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* Category Filter Bar — Segmented Studio Control */
.filter-bar-wrap {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 35, 56, 0.08);
  position: sticky;
  top: 80px;
  z-index: 90;
  padding: 14px max(6vw, calc((100vw - var(--max)) / 2 + 28px));
  transition: all 0.25s ease;
}

.filter-bar {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(7, 34, 61, 0.16);
}

.filter-count {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.8;
}

.filter-btn.active .filter-count {
  color: var(--cyan-bright);
  opacity: 1;
}

/* Portfolio List Grid — Clean Unified Studio Hierarchy */
.portfolio-gallery {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 48px max(6vw, calc((100vw - var(--max)) / 2 + 28px)) 88px;
  max-width: var(--max);
  margin: auto;
}

.case-study-row {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(13, 35, 56, 0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 8px 24px -4px rgba(13, 35, 56, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.case-study-row:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 180, 207, 0.4);
  box-shadow: 0 20px 40px -8px rgba(13, 35, 56, 0.08), 0 4px 12px -2px rgba(13, 35, 56, 0.03);
}

/* Consistent Preview Showcase on Left (order: 1) across all cards */
.case-study-preview {
  order: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #0b131f;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(13, 35, 56, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.case-study-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-row:hover .case-study-preview img {
  transform: scale(1.03);
}

/* Editorial & Specs Details on Right (order: 2) */
.case-study-info {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-category {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--blue);
  background: #f0f7fb;
  border: 1px solid #d8e9f3;
  padding: 3px 10px;
  border-radius: 9999px;
}

.case-study-badge-row .nav-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 9999px;
}

.case-study-info h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 8px;
}

.case-headline {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.5;
}

.case-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.case-metric-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  width: fit-content;
}

.case-study-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.case-study-actions .button-dark {
  background: #f8fafc;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.2s;
}

.case-study-actions .button-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.case-study-actions .button-outline {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
}

.case-study-actions .button-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(22, 107, 150, 0.25);
}

/* --------------------------------------------------------------------------
   Quick View Modal / Drawer
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 33, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--pale);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.modal-close-btn:hover {
  background: #e2edf2;
}

/* --------------------------------------------------------------------------
   Dedicated Case Study Page Deep Dive
   -------------------------------------------------------------------------- */
.cs-deep-hero {
  background: radial-gradient(ellipse at 80% 30%, #0d385c 0%, #07233e 45%, #041221 85%);
  color: var(--white);
  padding: 80px max(6vw, calc((100vw - var(--max)) / 2 + 28px)) 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-deep-hero-inner {
  max-width: var(--max);
  margin: auto;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan-bright);
  margin-bottom: 24px;
}

.cs-deep-hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.cs-deep-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: #b7cee0;
  max-width: 680px;
  margin-bottom: 34px;
}

.cs-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cs-meta-col span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8dafc5;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-meta-col strong {
  font-size: 14px;
  color: var(--white);
}

.cs-content-section {
  max-width: var(--max);
  margin: auto;
  padding: 80px max(6vw, calc((100vw - var(--max)) / 2 + 28px));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.cs-body-column h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cs-body-column h2:first-of-type {
  margin-top: 0;
}

.cs-body-column p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cs-media-box {
  margin: 36px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081d30;
}

.cs-media-box img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-gallery {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin: 36px 0 44px;
}

.cs-gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(4, 18, 33, 0.04);
}

.cs-gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-gallery-caption {
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--pale);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cs-gallery-caption span:first-child {
  flex: 1;
  min-width: 220px;
}

.cs-gallery-caption span:last-child {
  letter-spacing: 0.08em;
  color: var(--blue);
  white-space: nowrap;
}

/* Color Palette Grid for Brand Case Studies */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.palette-swatch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(4, 18, 33, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.palette-swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 18, 33, 0.08);
}

.palette-swatch-color {
  height: 85px;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.palette-swatch-hex {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
}

.palette-swatch-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.palette-swatch-info strong {
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
}

.palette-swatch-info span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.palette-swatch-info code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  margin-top: 4px;
}

.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.cs-impact-item {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.cs-impact-num {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.cs-impact-desc {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cs-side-card {
  background: #fbfdfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}

.cs-side-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Architectural Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 70px max(6vw, calc((100vw - var(--max)) / 2 + 28px)) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  width: 165px;
  height: auto;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: #92afc3;
  max-width: 280px;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 13px;
  color: #bed4e3;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #7998ae;
}

.footer-back-top {
  color: #bed4e3;
}

.footer-back-top:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Responsive Design & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    width: 60%;
  }
  .hero-visual {
    width: 40%;
  }
  .strip-grid, .service-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-study-row, .case-study-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-study-row.is-reversed .case-study-info {
    order: 1;
  }
  .case-study-row.is-reversed .case-study-preview {
    order: 2;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-content-section {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    height: 72px;
  }
  .nav-wrap {
    padding: 0 20px;
  }
  .brand img {
    width: 148px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    z-index: 110;
  }
  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    display: block;
    transition: transform 0.25s, opacity 0.25s;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    padding: 24px 20px 30px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(7, 34, 61, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .nav.open {
    display: flex;
  }
  .nav-cta {
    text-align: center;
    justify-content: center;
  }
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-content {
    width: 100%;
    padding: 50px 20px 0;
  }
  .hero-visual {
    display: none;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-pad {
    padding: 64px 20px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 34px;
  }
  .strip-grid, .service-matrix, .method-grid {
    grid-template-columns: 1fr;
  }
  .form-field-row, .pill-grid {
    grid-template-columns: 1fr;
  }
  .stepper-form-card {
    padding: 24px 18px;
  }
  .cs-meta-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
