/* MakerX portfolio — Concept F, monochrome, self-contained */

@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0B0C;
  --ink-2: #161618;
  --grey-5: #5C5C5C;
  --grey-8: #8A8A8A;
  --line: #E5E5E5;
  --wash: #F5F5F5;
  --paper: #FFFFFF;
  --font-display: "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --max: 1180px;
  --pad: clamp(20px, 5.2vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html[lang] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img,
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--grey-5);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--wash);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--grey-5);
  font-family: var(--font-display);
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.lang button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 11px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle span { top: 19px; }
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Layout helpers —— */

.wrap {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: 96px 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 16px;
  color: inherit;
}

.section-head p {
  color: var(--grey-5);
  font-size: 17px;
  line-height: 1.65;
}

.section-head.on-dark p { color: #C8C8C8; }
.section-head.on-dark .eyebrow { color: var(--grey-8); }
.section-head.on-dark h2 { color: var(--paper); }

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

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

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ink:hover { background: var(--ink-2); }
.btn-ink:focus-visible { outline-color: var(--ink); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover { border-color: var(--ink); }

/* —— Hero —— */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(520px, 52vw);
  transform: translateY(-50%);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 96px;
  width: 100%;
}

.hero .eyebrow { color: var(--grey-8); }

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 6.4vw, 5.15rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 11.2em;
  margin-bottom: 28px;
}

.hero-lede {
  max-width: 36em;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: #C8C8C8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13px;
  color: var(--grey-8);
  letter-spacing: 0.02em;
}

/* —— Work —— */

.work {
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.work-card:hover .browser,
.work-card:focus-visible .browser {
  border-color: #c8c8c8;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 11, 12, 0.08);
}

.work-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.browser {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--wash);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c8c8;
  display: block;
}

.dots i:nth-child(1) { background: #b0b0b0; }
.dots i:nth-child(2) { background: #9a9a9a; }
.dots i:nth-child(3) { background: #8A8A8A; }

.browser-url {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-5);
  font-family: var(--font-display);
}

.browser-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.browser-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.work-meta {
  padding: 16px 2px 0;
  display: grid;
  gap: 6px;
}

.work-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-5);
  font-family: var(--font-display);
}

.work-meta h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.work-loc {
  font-size: 13.5px;
  color: var(--grey-5);
}

.work-open {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work-open::after {
  content: "↗";
  font-size: 12px;
}

/* —— Process —— */

.process {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  min-width: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--grey-8);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d4d4d4;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.step p {
  font-size: 14.5px;
  color: var(--grey-5);
  line-height: 1.65;
}

/* —— Packages —— */

.packages {
  background: var(--paper);
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pkg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-width: 0;
}

.pkg-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: 10px;
}

.pkg h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.pkg-desc {
  color: var(--grey-5);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.pkg ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.pkg li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.pkg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
}

.pkg-price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* —— Contact —— */

.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact h2 { color: var(--paper); }

.contact-lede {
  color: #C8C8C8;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 34em;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-bottom: 8px;
}

.contact-details dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-8);
  margin-bottom: 6px;
}

.contact-details dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-family: var(--font-display);
}

.placeholder {
  font-variant-ligatures: none;
}

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 32px;
}

.form-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-intro {
  color: var(--grey-5);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.55;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.08);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.form-note {
  font-size: 12.5px;
  color: var(--grey-5);
  line-height: 1.55;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.form-success.is-visible { display: block; }

/* —— Footer —— */

.site-footer {
  background: var(--ink-2);
  color: #C8C8C8;
  padding: 36px 0;
  border-top: 1px solid #2a2a2c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

.footer-links a {
  color: #C8C8C8;
  text-decoration: none;
}

.footer-links a:hover { color: var(--paper); }

.footer-copy {
  font-size: 13px;
  color: var(--grey-8);
}

/* —— Legal pages —— */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--pad) 120px;
}

.legal-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 28px;
}

.legal-main h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
  letter-spacing: -0.03em;
}

.legal-main p,
.legal-main li {
  color: var(--grey-5);
  font-size: 16px;
  line-height: 1.7;
}

.legal-main p + p { margin-top: 12px; }

.legal-main ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}

.legal-block {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--wash);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.legal-block p { color: var(--ink); font-weight: 500; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-5);
  text-decoration: none;
  margin-bottom: 8px;
}

.legal-back:hover { color: var(--ink); }

/* —— Responsive —— */

@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .pkg-grid { grid-template-columns: 1fr; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { width: min(420px, 58vw); opacity: 0.1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle { display: block; }

  .header-actions { margin-left: auto; }

  .hero { min-height: 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { max-width: none; }
  .hero-mark { display: none; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-num::after { display: none; }

  .form { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }

  .pkg { padding: 26px 22px; }
}

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