/* ==========================================================================
   Demira — Redesign 3.0
   Design system: "Warm Ink" — deep ink base, bone paper sections, ember accent
   Author: Emmanuel Moses
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0b0d;
  --ink-2: #101318;
  --ink-3: #171b21;
  --ink-line: rgba(244, 241, 234, 0.12);

  --bone: #f4f1ea;
  --bone-2: #ebe6db;
  --bone-line: rgba(10, 11, 13, 0.12);

  --text-on-ink: #f4f1ea;
  --text-on-ink-soft: #a9a79f;
  --text-on-bone: #14161a;
  --text-on-bone-soft: #5d6067;

  --ember: #e0662f;
  --ember-soft: #f0894f;
  --gold: #e5b45a;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.14);
  --shadow-m: 0 18px 44px -22px rgba(0, 0, 0, 0.55);
  --shadow-l: 0 40px 90px -40px rgba(0, 0, 0, 0.7);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ember);
  color: #fff;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--paper {
  background: var(--bone);
  color: var(--text-on-bone);
}

.section--paper .eyebrow {
  color: var(--text-on-bone-soft);
}

.section--ink-2 {
  background: var(--ink-2);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ember);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-s) 0;
}

.skip:focus {
  left: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-ink-soft);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.section-title {
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.9rem);
}

.section-title em {
  font-style: italic;
  color: var(--ember);
}

.section--paper .section-title em {
  color: #b8481c;
}

.section-head {
  max-width: 44ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--text-on-ink-soft);
  max-width: 62ch;
}

.section--paper .lead {
  color: var(--text-on-bone-soft);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ember);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(224, 102, 47, 0.9);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-ink);
  border-color: var(--ink-line);
}

.btn--ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
  box-shadow: none;
}

.section--paper .btn--ghost {
  --btn-fg: var(--text-on-bone);
  border-color: var(--bone-line);
}

.section--paper .btn--ghost:hover {
  color: #b8481c;
  border-color: #b8481c;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-ember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ember);
  border-bottom: 1px solid rgba(224, 102, 47, 0.4);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease);
}

.link-ember:hover {
  gap: 0.8rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--ink-line);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  justify-self: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-ink-soft);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--ember);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-on-ink);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 0.86rem;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  justify-self: end;
}

.hamburger span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--text-on-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 6, 7, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.menu-overlay.show {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 96;
  width: min(340px, 88vw);
  height: 100dvh;
  padding: 1.4rem var(--gutter) 2rem;
  background: var(--ink-2);
  border-left: 1px solid var(--ink-line);
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--ink-line);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-menu-links a:hover {
  color: var(--ember);
  padding-left: 0.35rem;
}

.menu-foot {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-on-ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6rem));
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -25%;
  right: -18%;
  width: min(760px, 105vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(224, 102, 47, 0.22),
    rgba(224, 102, 47, 0) 66%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.16;
  mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.4rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  background: rgba(244, 241, 234, 0.04);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-ink-soft);
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ec27a;
  box-shadow: 0 0 0 0 rgba(78, 194, 122, 0.65);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(78, 194, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 194, 122, 0);
  }
}

.hero-title {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.1rem);
  margin-bottom: 1.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--ember);
}

.hero-sub {
  font-size: clamp(1.02rem, 0.98rem + 0.36vw, 1.2rem);
  color: var(--text-on-ink-soft);
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.6rem;
}

.hero-ctas .btn {
  flex: 1 1 190px;
}

@media (min-width: 620px) {
  .hero-ctas .btn {
    flex: 0 0 auto;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--ink-line);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  line-height: 1;
  color: var(--text-on-ink);
}

.stat-num em {
  font-style: normal;
  color: var(--ember);
}

.stat-lbl {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-on-ink-soft);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-l);
  background: var(--ink-2);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    190deg,
    rgba(10, 11, 13, 0) 45%,
    rgba(10, 11, 13, 0.82) 100%
  );
  pointer-events: none;
}

.hero-visual-tag {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-m);
  background: rgba(16, 19, 24, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink-line);
  font-size: 0.8rem;
  min-width: 0;
}

.hero-visual-tag strong {
  display: block;
  font-size: 0.9rem;
}

.hero-visual-tag span {
  color: var(--text-on-ink-soft);
}

.hero-visual-tag .pulse-dot {
  flex: none;
}

/* ---------- Marquee / trust strip ---------- */
.strip {
  border-block: 1px solid var(--ink-line);
  background: var(--ink-2);
  padding-block: 1.1rem;
  overflow: hidden;
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  width: max-content;
  animation: slide 34s linear infinite;
}

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

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

.strip-item {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.strip-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
}

/* ---------- Work ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(10, 11, 13, 0.6);
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.project-media {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bone-2);
}

.project-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.project-info {
  min-width: 0;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8481c;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.project-desc {
  color: var(--text-on-bone-soft);
  margin-bottom: 1rem;
}

.project-points {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.project-points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-on-bone-soft);
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ember);
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-on-bone-soft);
  margin-bottom: 1.2rem;
}

.closing-note {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem);
  line-height: 1.35;
}

.closing-note em {
  font-style: italic;
  color: #b8481c;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.about-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-m);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-loc {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 19, 24, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ink-line);
  font-size: 0.78rem;
}

.about-body {
  color: var(--text-on-ink-soft);
  margin-bottom: 1.05rem;
  max-width: 62ch;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-block: 1.4rem 1.6rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.36rem 0.8rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-on-ink-soft);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.chip:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

.service {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--ember);
  transition: height 0.4s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 72, 28, 0.4);
  background: #fff;
}

.service:hover::before {
  height: 100%;
}

.service .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #b8481c;
}

.service h3 {
  font-size: 1.32rem;
  margin-block: 0.85rem 0.7rem;
}

.service p {
  font-size: 0.95rem;
  color: var(--text-on-bone-soft);
}

.services-foot {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--bone-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.services-foot em {
  font-style: italic;
  color: var(--text-on-bone-soft);
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.045), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
  border-color: rgba(224, 102, 47, 0.45);
  transform: translateY(-4px);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ember);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--text-on-ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.15rem 1.15rem;
  transition: border-color 0.25s var(--ease);
}

.faq details[open] {
  border-color: rgba(184, 72, 28, 0.4);
  background: #fff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: #b8481c;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding-bottom: 1.15rem;
  color: var(--text-on-bone-soft);
  font-size: 0.96rem;
  max-width: 70ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.contact-meta {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--ink-line);
}

.contact-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.3rem;
}

.contact-meta p {
  font-size: 0.95rem;
  color: var(--text-on-ink-soft);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.contact-direct .btn {
  flex: 1 1 200px;
}

.c-form {
  padding: clamp(1.3rem, 3.5vw, 2.1rem);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  background: var(--ink-2);
  box-shadow: var(--shadow-m);
  display: grid;
  gap: 1.05rem;
  min-width: 0;
}

.f-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.05rem;
}

@media (min-width: 560px) {
  .f-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.f-group {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.f-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-on-ink-soft);
}

.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.82rem 0.95rem;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.f-group textarea {
  resize: vertical;
  min-height: 110px;
}

.f-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a9a79f' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}

.f-group select option {
  background: var(--ink-3);
  color: var(--text-on-ink);
}

.f-group input::placeholder,
.f-group textarea::placeholder {
  color: rgba(169, 167, 159, 0.6);
}

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  border-color: var(--ember);
  outline: none;
}

.f-err {
  font-size: 0.78rem;
  color: #ff8f6b;
}

.f-group.is-invalid input,
.f-group.is-invalid select,
.f-group.is-invalid textarea {
  border-color: #ff8f6b;
}

.f-others {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}

.f-others.is-visible {
  max-height: 320px;
  opacity: 1;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-on-ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  padding-top: clamp(2.6rem, 6vw, 4rem);
  padding-bottom: 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--ink-line);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.foot-tag {
  margin-top: 0.9rem;
  color: var(--text-on-ink-soft);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

.footer nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-on-ink-soft);
  transition: color 0.25s var(--ease);
}

.footer nav a:hover,
.footer-contact a:hover {
  color: var(--ember);
}

.copyline {
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-on-ink-soft);
}

/* ---------- Floating controls ---------- */
.stb {
  position: fixed;
  right: calc(clamp(1rem, 3vw, 1.75rem) + 62px);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 4px);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: rgba(16, 19, 24, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-on-ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.stb.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.stb:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.support {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.support-actions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
}

.support.open .support-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.support-action {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-s);
  transition: transform 0.25s var(--ease);
}

.support-action:hover {
  transform: scale(1.08);
}

.support-email {
  background: var(--ember);
}

.support-whatsapp {
  background: #22a34c;
}

.support-toggle {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--ember);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 34px -16px rgba(224, 102, 47, 0.9);
  transition: transform 0.3s var(--ease);
}

.support-toggle:hover {
  transform: scale(1.06);
}

.support-icon-close {
  display: none;
}

.support.open .support-icon-help {
  display: none;
}

.support.open .support-icon-close {
  display: block;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-words.in .word {
  opacity: 1;
  transform: none;
}

/* ---------- Success page ---------- */
.success-main {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding-block: calc(var(--nav-h) + 4rem) 4rem;
  text-align: center;
}

.success-wrap {
  max-width: 640px;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 102, 47, 0.12);
  border: 1px solid rgba(224, 102, 47, 0.4);
  color: var(--ember);
}

.success-title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.success-title em {
  font-style: italic;
  color: var(--ember);
}

.success-copy {
  color: var(--text-on-ink-soft);
  margin-bottom: 2rem;
}

.success-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ---------- Small screens polish ---------- */
@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-toggle {
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Layout refinements
   Hero without the portrait, tighter About photo, full-width section titles,
   roomier page gutters and re-proportioned hero buttons.
   ========================================================================== */

:root {
  --gutter: clamp(1.4rem, 5vw, 4.5rem);
}

/* ---------- Hero: full-bleed background, single centred column ---------- */
.hero--bg {
  display: flex;
  align-items: center;
  min-height: clamp(560px, 92svh, 900px);
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--bg .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to right,
      rgba(10, 11, 13, 0.94) 0%,
      rgba(10, 11, 13, 0.86) 45%,
      rgba(10, 11, 13, 0.62) 100%
    ),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.75), rgba(10, 11, 13, 0.9));
  pointer-events: none;
}

.hero--bg .wrap {
  width: 100%;
}

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

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-copy {
  width: 100%;
}

@media (min-width: 768px) {
  .hero-title {
    max-width: 22ch;
  }

  .hero-sub {
    max-width: 78ch;
  }

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

/* ---------- Hero buttons ---------- */
.hero-ctas .btn {
  flex: 0 1 auto;
  min-width: 0;
  padding-inline: 1.1rem;
  border-radius: 5px;
}

@media (min-width: 620px) {
  .hero-ctas .btn {
    flex: 0 0 auto;
    padding-inline: 2.6rem;
    border-radius: 5px;
  }
}

@media (min-width: 980px) {
  .hero-ctas .btn {
    padding-inline: 3.4rem;
  }
}

/* ---------- Section titles stretch, content sits below ---------- */
.section-head {
  max-width: none;
}

.section-head .section-title {
  max-width: none;
}

@media (min-width: 768px) {
  .section-head .lead {
    max-width: 72ch;
  }
}

/* ---------- About: smaller portrait, balanced columns ---------- */
.about-photo {
  width: 100%;
  max-width: 260px;
}

@media (min-width: 560px) {
  .about-photo {
    max-width: 300px;
  }
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .about-photo {
    max-width: 320px;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}

/* ==========================================================================
   Centred, page-wide composition
   Profile photo, hero content and every section title are centred and
   stretched evenly across the page width.
   ========================================================================== */

/* ---------- Hero: centred single column ---------- */
.hero--bg .hero-copy {
  margin-inline: auto;
  max-width: min(1100px, 100%);
  text-align: center;
}

.hero--bg .hero-badge {
  margin-inline: auto;
}

.hero--bg .hero-title,
.hero--bg .hero-sub {
  margin-inline: auto;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero--bg .hero-title {
    max-width: 20ch;
  }

  .hero--bg .hero-sub {
    max-width: 68ch;
  }
}

.hero--bg .hero-ctas {
  justify-content: center;
}

.hero--bg .hero-stats {
  text-align: center;
}

/* ---------- Section titles: centred and full page width ---------- */
.section-head {
  max-width: none;
  text-align: center;
}

.section-head .eyebrow::before {
  margin-left: 0;
}

.section-head .section-title {
  max-width: none;
  margin-inline: auto;
  text-wrap: balance;
}

.section-head .lead {
  margin-inline: auto;
}

/* ---------- About: centred portrait, evenly stretched copy ---------- */
.about-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(2rem, 5vw, 3.2rem);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    position: static;
  }
}

.about-photo {
  margin-inline: auto;
  max-width: 220px;
}

@media (min-width: 560px) {
  .about-photo {
    max-width: 240px;
  }
}

@media (min-width: 900px) {
  .about-photo {
    max-width: 260px;
  }
}

.about-copy {
  width: 100%;
  max-width: 78ch;
  text-align: center;
}

.about-copy .section-title {
  margin-inline: auto;
  text-wrap: balance;
}

.about-copy .about-body {
  max-width: none;
  margin-inline: auto;
}

.about-copy .skills {
  justify-content: center;
}

/* ---------- Contact: centred heading above the two columns ---------- */
.contact-copy .eyebrow,
.contact-copy .section-title,
.contact-copy .lead {
  text-align: center;
}

.contact-copy .section-title,
.contact-copy .lead {
  margin-inline: auto;
  text-wrap: balance;
}

.about-photo .photo-loc {
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
}

/* ---------- Mobile: justified body copy for clean, even text edges ---------- */
@media (max-width: 767px) {
  .hero-sub,
  .lead,
  .about-body,
  .project-desc,
  .project-points li,
  .service p,
  .step p,
  .faq details p,
  .services-foot,
  .closing-note,
  .foot-tag {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
