/* ==========================================================================
   ELKIR — Portfolio stylesheet
   ========================================================================== */

:root {
  --dark: #0c0c0b;
  --dark-soft: #131311;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-line-soft: rgba(255, 255, 255, 0.07);
  --light: #f3f0ea;
  --light-2: #ffffff;
  --light-line: rgba(12, 12, 11, 0.12);
  --light-line-soft: rgba(12, 12, 11, 0.08);

  --ink: #141412;
  --ink-soft: rgba(20, 20, 18, 0.62);
  --paper: #f6f4ef;
  --paper-soft: rgba(246, 244, 239, 0.62);

  --accent: #c79b6e;
  --accent-dark: #a97f54;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Caveat", cursive;

  --container: 1280px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-bg: #f3f0ea;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Single fixed backdrop shared by the process (03) and contact (06)
   sections — it never scrolls, so both sections act as windows onto the
   same continuous image. Sections in between stay on their own opaque
   background and simply sit on top of it, covering it. */
.mountains-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../img/mountains.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.nav-open { overflow: hidden; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon-arrow { width: 17px; height: 17px; flex-shrink: 0; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #232320; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--light-line);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-small { padding: 11px 20px; font-size: 0.85rem; }

.btn.is-loading { opacity: 0.7; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.link-arrow .icon-arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--light-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-mark { width: 24px; height: 24px; color: var(--ink); }
.logo-mark svg { width: 100%; height: 100%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 56px;
  margin-right: auto;
}
.main-nav a { position: relative; padding: 4px 0; opacity: 0.85; }
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section shell ---------- */
.section { padding: 108px 0; position: relative; overflow: hidden; }
.section-dark { background: var(--dark); color: #f2f0ec; }
.section-light { background: var(--light); color: var(--ink); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 22px;
}
.section-num {
  align-self: flex-start;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-bottom: 9px;
  opacity: 0.9;
}
.section-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 14px;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
}
.section-num-line {
  display: block;
  width: 1px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.16;
}
.section-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 320px;
  font-size: 1rem;
  opacity: 0.7;
  line-height: 1.6;
}
.section-intro-right {
  text-align: right;
  margin-left: auto;
  padding-left: 24px;
  border-left: 1px solid var(--light-line);
}
.section-dark .section-intro-right { border-left-color: var(--dark-line); }

/* ---------- Hero ---------- */
.hero {
  background: var(--light);
  padding-top: 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(32px, calc((100% - 1216px) / 2 + 32px))
    minmax(300px, 480px)
    40px
    1fr;
  align-items: center;
}
.hero-content { position: relative; grid-column: 2; }
.hero-media { grid-column: 4; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3.05rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  white-space: nowrap;
}
.hero-title .accent { color: var(--accent-dark); }

.hero-text {
  font-size: 1.05rem;
  max-width: 380px;
  opacity: 0.75;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.icon-arrow-down { transform: none; }

.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
  padding-left: 18px;
  border-left: 1px solid var(--light-line);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
}
.stat-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: radial-gradient(130% 140% at 74% 26%, #262620 0%, #17170f 45%, #0c0c0b 100%);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--light) 0%,
    var(--light) 6%,
    rgba(243, 240, 234, 0.65) 16%,
    rgba(243, 240, 234, 0) 34%
  );
}
/* faint oversized diamond that echoes the logomark — gives wide screens
   something intentional to look at instead of empty dark space */
.hero-media::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(560px, 62%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
  pointer-events: none;
}
.hero-media-frame {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  width: min(660px, 100%);
}
.hero-media-caption {
  z-index: 3;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Browser / code mockup (shared) ---------- */
.browser-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #161611;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.browser-mockup:hover {
  transform: rotate(0deg);
  box-shadow: 0 60px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.browser-mockup img { width: 100%; display: block; }

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #1c1c17;
}
.browser-chrome .browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.browser-chrome .browser-dot:nth-child(1) { background: #e2685a; }
.browser-chrome .browser-dot:nth-child(2) { background: #e8b34c; }
.browser-chrome .browser-dot:nth-child(3) { background: #67c568; }

.browser-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
}
.browser-nav svg { width: 14px; height: 14px; display: block; }

.browser-chrome .browser-url {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.browser-chrome .browser-url:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.browser-url-icon { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.8; }
.browser-url-text,
.browser-url-copied { white-space: nowrap; flex-shrink: 0; }
.browser-url-copied { display: none; }
.browser-url.is-copied {
  background: rgba(103, 197, 104, 0.18);
  color: #8fd98f;
}
.browser-url.is-copied .browser-url-text,
.browser-url.is-copied .browser-url-icon { display: none; }
.browser-url.is-copied .browser-url-copied { display: inline; }

/* the oversized brand mark used as a quiet watermark behind key headings */
.hero-watermark {
  position: absolute;
  top: -34px;
  left: -30px;
  width: 240px;
  height: 240px;
  color: var(--ink);
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}
.hero-watermark svg { width: 100%; height: 100%; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); }

.project-card--dark,
.project-card--light {
  background-size: cover;
  background-position: center;
}
.project-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.75) 100%);
  z-index: -1;
}
.project-card--dark { color: #fff; }

.project-card--light {
  color: var(--ink);
}
.project-card--light .project-card-body {
  background: var(--light-2);
  margin: -20px -20px -20px -20px;
  padding: 16px 20px 20px;
}
.project-card--light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.97) 78%);
  z-index: -1;
}
.project-card--light .project-category {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.project-card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-right: 44px;
}

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.project-card--light .project-tags span {
  background: rgba(12, 12, 11, 0.07);
}

.project-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.project-link svg { width: 17px; height: 17px; }
.project-card:hover .project-link { transform: scale(1.08); background: var(--accent); }

.project-card--feature {
  background: var(--dark-soft);
  background-image: url("../img/ABSTRACT_WAVE.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  justify-content: flex-end;
  position: relative;
}
.project-card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,11,0.55) 0%, rgba(12,12,11,0.55) 100%);
}
.project-card--feature p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
}
.project-card--feature p::before {
  content: "";
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.4);
}

/* ---------- Services ---------- */
#services.section { padding: 84px 0; }
#services .section-head { margin-bottom: 36px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card {
  padding: 24px 22px;
  border-radius: 12px;
  background: var(--light-2);
  border: 1px solid var(--light-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 24px 44px -26px rgba(12, 12, 11, 0.25);
}
.service-icon {
  width: 34px;
  height: 34px;
  color: var(--ink);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.service-card p {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.6;
  flex-grow: 1;
}
.service-card a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--light-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.service-card a svg { width: 15px; height: 15px; }
.service-card a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Process ---------- */
/* process + contact sit on the shared .mountains-bg fixed layer instead of
   their own background, so their solid dark fill is dropped here — only
   the tint gradient (::after) stays, for text legibility over the photo. */
.process-section,
.contact-section {
  position: relative;
  background: transparent;
}
.process-bg {
  position: absolute;
  inset: 0;
}
.process-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(12,12,11,0.7) 30%, rgba(12,12,11,0.35) 60%, rgba(12,12,11,0.15) 100%);
}
.contact-bg::after {
  background: linear-gradient(180deg, var(--dark) 0%, rgba(12,12,11,0.55) 35%, rgba(12,12,11,0.75) 100%);
}
.process-section .container,
.contact-section .container { position: relative; z-index: 1; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  position: relative;
}

/* the dot + arrow row for this step, sized to exactly line up with the
   vertical connector below it (both anchor to the dot's true center) */
.process-track-seg {
  position: relative;
  height: 20px;
  margin-bottom: 8px;
}
.process-track-seg::before {
  content: "";
  position: absolute;
  left: 0;
  right: -20px; /* bridge the grid gap so the line reaches the next dot */
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background-color 0.25s var(--ease);
}
.process-step:last-child .process-track-seg::before { right: 0; }

.process-dot {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: var(--dark);
  transform: translateY(-50%);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.process-arrow {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
}
.process-arrow svg { width: 14px; height: 14px; }

/* vertical connector: anchored at the dot's exact center so the
   horizontal and vertical lines meet at the same point, no gap */
.process-line {
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 5.5px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.25s var(--ease);
}

.process-body { padding-left: 22px; }

.process-number {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.5;
  margin-bottom: 10px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.6;
  max-width: 26ch;
}

/* hovering anywhere on a step lights up its dot + connector */
.process-step:hover .process-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(199, 155, 110, 0.22);
  transform: translateY(-50%) scale(1.2);
}
.process-step:hover .process-line {
  background: rgba(199, 155, 110, 0.65);
}

.process-vertical-text {
  position: absolute;
  right: 40px;
  bottom: 64px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  opacity: 0.55;
  text-align: right;
  white-space: pre-line;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.about-text {
  font-size: 1rem;
  opacity: 0.7;
  line-height: 1.65;
  max-width: 40ch;
  margin: 22px 0 32px;
}

.about-media {
  display: flex;
  align-items: center;
}

.code-panel {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #100f0d;
  box-shadow: 0 40px 70px -28px rgba(12, 12, 11, 0.35), 0 0 0 1px rgba(12, 12, 11, 0.06);
}
.code-panel .browser-chrome { background: #17160f; }
.code-body {
  margin: 0;
  padding: 28px 26px 32px;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  white-space: pre;
  overflow-x: auto;
}
.code-comment { color: rgba(255, 255, 255, 0.32); font-style: italic; }
.code-key { color: var(--accent); }
.code-punct { color: rgba(255, 255, 255, 0.4); }
.code-str { color: #f2f0ec; }

.about-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-left: 24px;
  border-left: 1px solid var(--light-line);
  align-self: stretch;
  justify-content: center;
}
.about-values {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.9;
  opacity: 0.65;
}
.signature {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1;
}
.signature-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.signature-label span {
  display: block;
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ---------- Tech stack ---------- */
#tech.section { padding: 84px 0; }
#tech .section-head { margin-bottom: 36px; }

.tech-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}
.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--light-2);
  border: 1px solid var(--light-line);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.8;
  filter: grayscale(1);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease), filter 0.3s var(--ease);
}
.tech-item:hover {
  transform: translateY(-4px);
  opacity: 1;
  border-color: var(--ink);
  filter: grayscale(0);
}
.tech-note {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 32px;
  border-left: 1px solid var(--light-line);
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
  opacity: 0.6;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}
.form-field select option {
  background: var(--dark-soft);
  color: #fff;
}
.form-field textarea { resize: vertical; min-height: 92px; font-family: var(--font-body); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.75;
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.85rem;
  opacity: 0.7;
}
.form-status.is-success { color: #8bc98b; opacity: 1; }
.form-status.is-error { color: #e08585; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-line-soft);
}
.logo-footer { margin-right: 0; color: #fff; }
.logo-footer .logo-mark { color: #fff; }

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.55;
  margin-right: auto;
}

.footer-nav { display: flex; gap: 26px; font-size: 0.9rem; }
.footer-nav a { opacity: 0.7; transition: opacity 0.25s var(--ease); }
.footer-nav a:hover { opacity: 1; }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.45;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 480px; }
  .about-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    border-left: 0;
    padding-top: 24px;
    border-top: 1px solid var(--light-line);
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .container { padding-inline: 24px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }

  .hero-grid { display: block; }
  .hero-content { grid-column: auto; padding-inline: 24px; }
  .hero-media { grid-column: auto; min-height: 0; margin-inline: 24px; padding: 28px; border-radius: var(--radius); width: auto; }
  .hero-media::before { display: none; }
  .hero-media::after { display: none; }
  .hero-media-caption { display: none; }
  .hero-watermark { display: none; }
  .browser-mockup { transform: none; }
  .hero-title { white-space: normal; }

  #services.section,
  #tech.section { padding: 76px 0; }

  .section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-intro-right { text-align: left; margin-left: 0; }
  .tech-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tech-note { padding-left: 0; border-left: 0; text-align: left; }

  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .process-line { display: none; }
  .process-body { padding-left: 0; }
  .process-track-seg { display: none; }
  .process-vertical-text { display: none; }

  .hero-stats { flex-wrap: wrap; }

  .tech-grid { justify-content: flex-start; gap: 28px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-left: 0 !important; padding-left: 0 !important; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 18px 24px; }
  .stat { border-left: 0; padding-left: 0; flex: 1 1 45%; }
  .stat-title, .stat-label { white-space: normal; }
  .about-side { flex-direction: column; align-items: flex-start; }
}