/* Design tokens */
:root {
  --bg: #edf4f2;
  --outside: #0f1719;
  --surface: #fbfcf8;
  --surface-soft: #dcebe7;
  --text: #15171a;
  --muted: #566468;
  --line: #9eb1b2;
  --accent: #1f6f78;
  --accent-dark: #173f48;
  --cool: #1f6f78;
  --cool-dark: #173f48;
  --cool-soft: #d7e8e3;
  --warm: #c86f45;
  --shadow: 0 26px 70px rgba(15, 23, 25, 0.14);
  --radius: 6px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.18), transparent 34%),
    var(--outside);
}

body {
  width: min(calc(100% - 28px), 1520px);
  height: calc(100dvh - 28px);
  margin: 14px auto;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(23, 63, 72, 0.035) 1px, transparent 1px) center top / 25% 100%,
    linear-gradient(140deg, rgba(31, 111, 120, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(200, 111, 69, 0.08), transparent 42%),
    linear-gradient(180deg, #fbfcf8 0%, #edf4f2 46%, #e3eeeb 100%),
    var(--bg);
  border: 1px solid rgba(158, 177, 178, 0.36);
  border-radius: 6px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
  line-height: 1.6;
  scrollbar-gutter: stable;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #e7efed;
}

body::-webkit-scrollbar-thumb {
  background: #92aaab;
  border: 2px solid #e7efed;
  border-radius: 999px;
}

body.nav-open {
  overflow: hidden;
}

.promo-board {
  position: relative;
  z-index: 5;
  overflow: hidden;
  contain: paint;
  color: #fff;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 8px, transparent 8px 16px),
    #c29b63;
  border-bottom: 1px solid rgba(15, 23, 25, 0.22);
}

.promo-track {
  display: flex;
  width: max-content;
  backface-visibility: hidden;
  will-change: transform;
  animation: promo-scroll 22s linear infinite;
}

.promo-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
  min-width: max-content;
  padding: 11px 42px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-content::after {
  width: 6px;
  height: 6px;
  margin-left: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.promo-content strong {
  padding: 2px 8px;
  color: #c29b63;
  background: #fff;
  border-radius: 2px;
  font-weight: 800;
}

.promo-content b {
  font-weight: 800;
}

.promo-content i {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 800;
}

.promo-board:hover .promo-track,
.promo-board:focus-within .promo-track {
  animation-play-state: paused;
}

@keyframes promo-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

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

.container {
  width: min(100% - 34px, var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

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

/* Shared header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 248, 0.88);
  border-bottom: 1px solid rgba(23, 63, 72, 0.18);
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo img {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

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

.nav-menu a {
  padding: 10px 4px 7px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: transparent;
  border-color: var(--cool);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(23, 63, 72, 0.22);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.70);
}

.language-switch button {
  min-width: 34px;
  min-height: 30px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: var(--cool);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 99px;
}

/* Home hero and visual mockup */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 158px);
  overflow: hidden;
  padding: 72px 0 110px;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(23, 63, 72, 0.04) 1px, transparent 1px) center top / 25% 100%,
    linear-gradient(135deg, rgba(31, 111, 120, 0.20), transparent 34%),
    linear-gradient(300deg, rgba(200, 111, 69, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(251, 252, 248, 0.98), rgba(227, 238, 235, 0.92));
  background-size: 25% 100%, 140% 140%, 140% 140%, 100% 100%;
}

.hero::before {
  content: "DESIGNECA";
  position: absolute;
  left: max(18px, calc((100% - var(--container)) / 2));
  bottom: 18px;
  color: rgba(23, 63, 72, 0.045);
  font-size: 132px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.68) 48%, transparent 72%);
  transform: translateX(-100%);
  opacity: 0;
  animation: hero-light-sweep 5.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-ambient::before {
  content: none;
}

.hero-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.72;
  will-change: transform;
}

.hero-ambient span:nth-child(1) {
  top: -18%;
  right: 4%;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31, 111, 120, 0.36), transparent 68%);
  animation: hero-float-one 9s ease-in-out infinite alternate;
}

.hero-ambient span:nth-child(2) {
  bottom: -32%;
  left: 18%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200, 111, 69, 0.24), transparent 68%);
  animation: hero-float-two 11s ease-in-out infinite alternate;
}

.hero-logo-build {
  position: absolute;
  top: 50%;
  right: max(5%, calc((100% - var(--container)) / 2));
  width: clamp(190px, 23vw, 330px);
  height: auto;
  overflow: visible;
  transform: translateY(-55%);
  filter: drop-shadow(0 28px 44px rgba(23, 63, 72, 0.14));
  animation: logo-complete-glow 5.6s ease-in-out infinite;
}

.hero-logo-build .logo-layer {
  opacity: 0;
  transform: translateY(36px);
  transform-origin: center;
  will-change: opacity, transform;
}

.hero-logo-build .logo-layer-base {
  fill: var(--text);
  animation: logo-build-base 5.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-logo-build .logo-layer-middle {
  fill: var(--cool);
  animation: logo-build-middle 5.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-logo-build .logo-layer-top {
  fill: var(--text);
  animation: logo-build-top 5.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-scroll {
  position: absolute;
  right: max(18px, calc((100% - var(--container)) / 2));
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cool-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(31, 111, 120, 0.24);
}

.hero-scroll i::after {
  position: absolute;
  inset: 0;
  background: var(--cool);
  animation: hero-scroll-line 2s ease-in-out infinite;
  content: "";
}

@keyframes hero-light-sweep {
  0%, 44% {
    opacity: 0;
    transform: translateX(-110%);
  }
  48% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
    transform: translateX(110%);
  }
  71%, 100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@keyframes logo-complete-glow {
  0%, 35%, 76%, 100% {
    filter: drop-shadow(0 28px 44px rgba(23, 63, 72, 0.14));
  }
  48%, 62% {
    filter:
      drop-shadow(0 28px 44px rgba(23, 63, 72, 0.18))
      drop-shadow(0 0 24px rgba(255, 255, 255, 0.9));
  }
}

@keyframes hero-float-one {
  to {
    transform: translate(-10%, 12%) scale(1.12);
  }
}

@keyframes hero-float-two {
  to {
    transform: translate(14%, -10%) scale(0.9);
  }
}

@keyframes logo-build-base {
  0%, 5%, 100% { opacity: 0; transform: translateY(42px); }
  14%, 82% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-8px); }
}

@keyframes logo-build-middle {
  0%, 14%, 100% { opacity: 0; transform: translateY(42px); }
  25%, 82% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-8px); }
}

@keyframes logo-build-top {
  0%, 25%, 100% { opacity: 0; transform: translateY(42px); }
  36%, 82% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-8px); }
}

@keyframes hero-scroll-line {
  0% {
    transform: translateY(-100%);
  }
  50%, 100% {
    transform: translateY(100%);
  }
}

.hero-grid,
.split,
.two-column,
.contact-grid {
  display: grid;
  gap: 42px;
}

.hero-grid {
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-centered {
  display: block;
}

.hero-centered .hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(220px, 27vw, 360px) 0 0;
  border-top: 0;
  text-align: left;
}

.hero-content h1 {
  animation: hero-copy-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .hero-text {
  animation: hero-copy-in 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .hero-actions {
  animation: hero-copy-in 900ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-centered .hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(31, 111, 120, 0.34);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-centered .hero-actions {
  justify-content: flex-start;
  max-width: 680px;
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cool-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 1050px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-text,
.page-hero p,
.rich-text p,
.section-heading + p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--cool);
  box-shadow: 0 16px 36px rgba(31, 111, 120, 0.25);
}

.btn-primary:hover {
  background: var(--cool-dark);
}

.btn-secondary {
  color: var(--text);
  background: rgba(251, 252, 248, 0.72);
  border-color: rgba(23, 63, 72, 0.28);
}

.mockup-showcase {
  margin-top: 26px;
  text-align: left;
  overflow: hidden;
  border-top: 0;
}

.projects-showcase {
  scroll-margin-top: 88px;
  padding: 64px 0 72px;
  background: linear-gradient(180deg, rgba(251, 252, 248, 0.74), rgba(227, 238, 235, 0.72));
}

.mockup-section-heading {
  margin-top: 0;
}

.mockup-section-heading .eyebrow {
  margin: 0;
}

.mockup-slider {
  position: relative;
  height: min(52vh, 470px);
  min-height: 380px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid rgba(31, 111, 120, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(200, 111, 69, 0.10), transparent 42%),
    linear-gradient(90deg, rgba(23, 63, 72, 0.045) 1px, transparent 1px) center top / 25% 100%,
    linear-gradient(180deg, rgba(251, 252, 248, 0.94), rgba(215, 232, 227, 0.46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mockup-slider.dragging {
  cursor: grabbing;
}

.mockup-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(330px, 52vw);
  border: 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.58);
  transform-origin: center;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
  filter: saturate(0.72);
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.mockup-slide.active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  filter: saturate(1);
  pointer-events: auto;
}

.mockup-slide.prev {
  opacity: 0.58;
  z-index: 2;
  transform: translate(calc(-50% - 280px), -50%) scale(0.72);
  pointer-events: auto;
}

.mockup-slide.next {
  opacity: 0.58;
  z-index: 2;
  transform: translate(calc(-50% + 280px), -50%) scale(0.72);
  pointer-events: auto;
}

.mockup-slide img {
  display: block;
  width: 100%;
  height: min(48vh, 440px);
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
  filter: brightness(1) drop-shadow(0 22px 34px rgba(0, 0, 0, 0.18));
  transition: filter 220ms ease;
}

.mockup-project-link {
  position: absolute;
  inset: 2% 3%;
  display: grid;
  place-items: center;
  border-radius: 17% / 9%;
  color: #fff;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mockup-slide.active .mockup-project-link {
  pointer-events: auto;
}

.mockup-project-link span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(9, 28, 32, 0.78);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(8px);
  transition: transform 220ms ease, background 180ms ease;
}

.mockup-project-link small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.mockup-slide.active:hover .mockup-project-link,
.mockup-project-link:focus-visible {
  opacity: 1;
}

.mockup-slide.active:hover img,
.mockup-slide.active:focus-within img {
  filter: brightness(0.48) drop-shadow(0 22px 34px rgba(0, 0, 0, 0.18));
}

.mockup-slide.active:hover .mockup-project-link span,
.mockup-project-link:focus-visible span {
  transform: translateY(0);
}

.mockup-project-link:hover span {
  background: var(--cool-dark);
}

.marquee-band {
  overflow: hidden;
  color: #fff;
  background: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  padding: 20px 34px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.marquee-content span::after {
  width: 7px;
  height: 7px;
  margin-left: 68px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.studio-visual {
  position: relative;
  min-height: 500px;
}

.browser-card,
.metric-card,
.phone-preview,
.contact-form,
.contact-card {
  border: 1px solid rgba(31, 111, 120, 0.18);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.88);
  box-shadow: none;
}

.browser-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(31, 111, 120, 0.24);
  transform: rotate(-1.4deg);
}

.browser-card::before {
  content: "01";
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.browser-bar {
  display: none;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #f2c572;
}

.browser-bar span:nth-child(2) {
  background: #d96f5d;
}

.browser-bar span:nth-child(3) {
  background: #7db78a;
}

.browser-body {
  padding: 24px 24px 30px;
}

.mock-hero {
  min-height: 220px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 25, 0.90), rgba(31, 111, 120, 0.28)),
    url("img/designeca-logo-bg.png");
  background-size: cover;
  background-position: center;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.mock-row span {
  height: 88px;
  border-radius: 0;
  background:
    linear-gradient(180deg, transparent 49%, rgba(31, 111, 120, 0.24) 50%, transparent 51%),
    var(--surface-soft);
}

.mock-content {
  padding: 18px;
  border-radius: 0;
  background: #0f1719;
  color: #fff;
}

.mock-content p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.metric-card {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: min(250px, 80%);
  padding: 20px;
  border-color: rgba(31, 111, 120, 0.24);
  transform: rotate(1.6deg);
}

.metric-card span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
}

/* Shared page sections and cards */
.section {
  padding: 86px 0;
  border-bottom: 1px solid rgba(31, 111, 120, 0.10);
}

.hero ~ .section {
  padding: 68px 0;
}

.section-heading {
  max-width: 760px;
}

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

.rich-text p {
  margin-top: 0;
}

.services-band,
.process-section {
  background:
    linear-gradient(90deg, rgba(23, 63, 72, 0.035) 1px, transparent 1px) center top / 25% 100%,
    linear-gradient(135deg, rgba(31, 111, 120, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(251, 252, 248, 0.60), rgba(220, 235, 231, 0.38));
}

.difference-section {
  background:
    linear-gradient(90deg, rgba(23, 63, 72, 0.035) 1px, transparent 1px) center top / 25% 100%,
    linear-gradient(135deg, rgba(200, 111, 69, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(251, 252, 248, 0.72), rgba(237, 244, 242, 0.58));
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card,
.project-card,
.portfolio-item {
  border: 0;
  border-top: 1px solid rgba(31, 111, 120, 0.36);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.78);
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease;
}

.card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px 0;
}

.services-grid .card {
  padding: 30px;
}

.business-includes .card,
.service-method-cards .card {
  padding: 30px;
}

.editorial-services {
  gap: 24px;
}

.editorial-services .card {
  min-height: 305px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(251, 252, 248, 0.88), rgba(215, 232, 227, 0.34));
  border-top: 1px solid rgba(31, 111, 120, 0.36);
}

.editorial-services .card-icon {
  margin-bottom: 54px;
  font-size: 58px;
  color: var(--accent-dark);
}

.editorial-services h3 {
  margin-bottom: 28px;
  font-size: 24px;
}

.editorial-services p {
  max-width: 92%;
  font-size: 20px;
  line-height: 1.55;
}

.editorial-services a {
  margin-top: 22px;
}

.card:hover,
.project-card:hover,
.portfolio-item:hover {
  transform: translateY(-2px);
  background: rgba(251, 252, 248, 0.96);
}

.card p,
.project-card p,
.portfolio-item p,
.process-item p,
.stack-list p,
.feature-list p,
.contact-card p {
  color: var(--muted);
}

.card a,
.text-link {
  color: var(--cool-dark);
  font-weight: 800;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.price-grid {
  display: grid;
  gap: 18px;
}

.price-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 26px 20px 22px 0;
  border-top: 1px solid rgba(31, 111, 120, 0.30);
}

.price-card.featured {
  padding-left: 22px;
  padding-right: 22px;
  background: linear-gradient(180deg, rgba(215, 232, 227, 0.48), rgba(251, 252, 248, 0.76));
  border-top-color: var(--cool);
}

.price-card strong {
  display: block;
  margin: 18px 0;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.price-card p,
.price-card li {
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding-left: 18px;
}

.price-card .btn {
  margin-top: auto;
}

.btn-static {
  cursor: default;
}

.btn-static:hover {
  transform: none;
}

.project-grid,
.portfolio-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  overflow: hidden;
  background: transparent;
}

.project-card > div:not(.project-preview) {
  padding: 24px;
}

.project-preview {
  min-height: 235px;
  background-size: cover;
  position: relative;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
}

.preview-gold {
  background: linear-gradient(135deg, #30251d, #caa36c 58%, #fff1cf);
}

.preview-blue {
  background: linear-gradient(135deg, #1d3240, #6aa5b8 58%, #d9f1f4);
}

.preview-dark {
  background: linear-gradient(135deg, #17191d, #5e5149 58%, #d7c4af);
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  min-height: 235px;
  padding: 24px 18px 18px 0;
  border-top: 1px solid rgba(31, 111, 120, 0.28);
  border-left: 0;
}

.process-item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  font-weight: 800;
}

.cta-section {
  padding: 92px 0;
}

.cta-inner {
  padding: 50px;
  border-radius: var(--radius);
  color: #f7fbfa;
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.92), rgba(15, 23, 25, 0.96)),
    #0f1719;
  box-shadow: 0 24px 70px rgba(15, 23, 25, 0.18);
  position: relative;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(169, 218, 216, 0.34);
  border-radius: 12px;
  background:
    rgba(251, 252, 248, 0.10)
    url("img/favicon.svg") center / 70% 70% no-repeat;
  opacity: 0.92;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.cta-inner .eyebrow {
  color: #a9dad8;
}

.cta-inner h2 {
  max-width: 880px;
  margin-bottom: 26px;
}

/* Inner page layouts */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 78px;
  border-bottom: 1px solid rgba(31, 111, 120, 0.14);
  background:
    linear-gradient(90deg, rgba(23, 63, 72, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 111, 120, 0.12), transparent 42%),
    var(--bg);
  background-size: 28px 28px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: max(18px, calc((100% - var(--container)) / 2));
  bottom: 34px;
  width: 92px;
  height: 92px;
  background: url("img/favicon.svg") center / contain no-repeat;
  opacity: 0.44;
}

.page-hero p {
  max-width: 760px;
}

.feature-list ul,
.stack-list {
  display: grid;
  gap: 14px;
}

.feature-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.stack-list div {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.70);
  border: 0;
  border-top: 1px solid rgba(31, 111, 120, 0.24);
}

.stack-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span,
.tech-list span {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid rgba(31, 111, 120, 0.26);
  border-radius: var(--radius);
  background: rgba(215, 232, 227, 0.24);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.phone-preview {
  width: min(100%, 350px);
  min-height: 570px;
  margin: 0 auto;
  padding: 16px;
  background: #17191d;
  transform: rotate(-1deg);
}

.phone-screen {
  min-height: 538px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(160deg, #fbfcf8, #d7e8e3);
}

.mini-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.countdown-row span {
  padding: 12px 4px;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.phone-screen button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.portfolio-list {
  gap: 26px;
}

.portfolio-item {
  overflow: hidden;
  background: transparent;
}

.portfolio-item > div:not(.project-preview) {
  padding: 26px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.contact-form label {
  font-weight: 800;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: rgba(251, 252, 248, 0.94);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.inquiry-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  border: 0;
  background: rgba(12, 35, 40, 0.72);
}

.inquiry-modal[open] {
  display: grid;
  place-items: center;
}

.inquiry-modal::backdrop {
  background: rgba(12, 35, 40, 0.72);
  backdrop-filter: blur(5px);
}

.inquiry-modal-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(31, 111, 120, 0.26);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(6, 28, 33, 0.34);
}

.inquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  line-height: 1;
}

.inquiry-modal-heading {
  padding-right: 36px;
}

.inquiry-modal-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 42px);
}

.inquiry-modal-heading > p:last-child {
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.inquiry-form label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.inquiry-form label span {
  color: var(--muted);
  font-weight: 500;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(251, 252, 248, 0.94);
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form .btn {
  margin-top: 10px;
}

.inquiry-form.submitted > :not(.inquiry-status) {
  display: none;
}

.inquiry-form.submitted .inquiry-status {
  padding: 22px;
  color: var(--cool-dark);
  background: rgba(215, 232, 227, 0.58);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

.contact-card {
  padding: 28px;
  align-self: start;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-links a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-weight: 800;
}

.contact-links span {
  color: var(--accent-dark);
  font-size: 12px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  padding: 56px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  background: #0f1719;
}

.site-footer .logo {
  width: max-content;
  padding: 10px 12px;
  background: var(--bg);
}

.site-footer .logo img {
  width: min(240px, 62vw);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 16px;
}

.footer-grid a:not(.logo) {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

/* Scroll reveal animation state */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 13px 12px;
  }

}

@media (min-width: 720px) {
  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-grid,
  .split,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  }

  .hero-centered {
    display: block;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
  }

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

@media (min-width: 1040px) {
  h1 {
    font-size: clamp(68px, 5.5vw, 80px);
    line-height: 0.96;
  }

  h2 {
    font-size: 46px;
  }

  .hero {
    padding-top: 58px;
  }

  .services-grid,
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-list.compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    margin: 8px auto;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .promo-content {
    gap: 16px;
    padding: 10px 24px;
    font-size: 10px;
  }

  .hero,
  .page-hero {
    padding-top: 54px;
  }

  .hero {
    min-height: calc(100dvh - 143px);
    padding-bottom: 92px;
  }

  .hero::before {
    font-size: 58px;
    bottom: 22px;
  }

  .hero-scroll {
    right: 18px;
    bottom: 20px;
  }

  .hero-scroll span {
    display: none;
  }

  .projects-showcase {
    padding: 48px 0 54px;
  }

  .hero-centered .hero-content {
    padding-right: 0;
    text-align: left;
  }

  .hero-centered .hero-text {
    margin-left: 0;
    margin-right: 0;
    padding-top: 18px;
  }

  .hero-centered .hero-actions {
    justify-content: stretch;
    margin-left: 0;
  }

  .hero-logo-build {
    top: auto;
    right: 22px;
    bottom: 25px;
    width: 82px;
    transform: none;
    filter: none;
  }

  .mockup-showcase {
    margin-top: 22px;
  }

  .mockup-section-heading {
    margin-top: 0;
  }

  .mockup-slider {
    height: 390px;
    min-height: 390px;
  }

  .mockup-slide img {
    height: 365px;
  }

  .mockup-slide {
    width: min(245px, 58vw);
  }

  .mockup-slide.prev {
    transform: translate(calc(-50% - 132px), -50%) scale(0.70);
  }

  .mockup-slide.next {
    transform: translate(calc(-50% + 132px), -50%) scale(0.70);
  }

  .mockup-slide.active .mockup-project-link {
    align-items: end;
    padding-bottom: 12%;
    background: transparent;
    opacity: 1;
  }

  .mockup-slide.active .mockup-project-link span {
    transform: none;
  }

  .marquee-content span {
    padding: 16px 24px;
    font-size: 11px;
  }

  .marquee-content span::after {
    margin-left: 48px;
  }

  .section,
  .cta-section {
    padding: 54px 0;
  }

  .services-grid .card {
    padding: 24px 20px;
  }

  .business-includes .card,
  .service-method-cards .card {
    padding: 24px 20px;
  }

  .editorial-services .card {
    padding: 26px 22px;
  }

  .studio-visual {
    min-height: 350px;
  }

  .browser-body {
    padding: 16px;
  }

  .browser-card,
  .metric-card,
  .phone-preview {
    transform: none;
  }

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

  .mock-row span {
    height: 42px;
  }

  .metric-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .cta-inner {
    padding: 28px;
  }

  .cta-inner::after,
  .page-hero::after {
    display: none;
  }


  .btn {
    width: 100%;
  }

  .inquiry-modal {
    padding: 8px;
  }

  .inquiry-modal-panel {
    max-height: calc(100dvh - 16px);
    padding: 26px 20px;
  }

  .inquiry-modal-heading {
    padding-right: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-ambient span,
  .hero-logo-build,
  .hero-logo-build .logo-layer,
  .hero-scroll i::after {
    animation: none;
  }

  .hero-logo-build .logo-layer {
    opacity: 1;
    transform: none;
  }

  .hero::after {
    display: none;
  }

  .marquee-track {
    width: auto;
    animation: none;
  }

  .promo-track {
    width: auto;
    animation: none;
  }

  .promo-content {
    flex-wrap: wrap;
    justify-content: center;
    min-width: 100%;
  }

  .promo-content[aria-hidden="true"] {
    display: none;
  }

  .marquee-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-content[aria-hidden="true"] {
    display: none;
  }
}
