:root {
  --ink: #252a30;
  --muted: #687078;
  --surface: #f2f3f4;
  --surface-deep: #e6e8ea;
  --white: #fff;
  --accent: #d9dcdf;
  --line: #dfe2e5;
  --dark: #292e34;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #858d95; outline-offset: 3px; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.logo img {
  display: block;
  width: 66px;
  height: 74px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(84%) saturate(1624%) hue-rotate(223deg) brightness(98%) contrast(94%);
  transform-origin: center;
  transition: transform .3s cubic-bezier(.2, .7, .25, 1);
  animation: logo-colors 7s ease-in-out infinite;
}
.logo:hover img, .logo:focus-visible img { transform: translateY(-2px) rotate(-2deg) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav-links a, .text-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .text-link:hover { color: var(--muted); }
.nav-links a[aria-current="page"] { color: #4f63b8; }
.nav-links .nav-cta { padding: 11px 17px; border: 1px solid #aeb4ba; border-radius: 5px; }
.nav-links .nav-cta:hover { background: var(--surface); color: var(--ink); }
.menu { display: none; }

.hero { padding: clamp(46px, 6vw, 70px) 0 clamp(50px, 6vw, 74px); background: var(--surface); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
.eyebrow, .label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #525960; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #777f87; }
h1, h2, h3 { margin: 0; font-family: Manrope, sans-serif; line-height: 1.08; }
h1 { max-width: 700px; font-size: clamp(44px, 5.6vw, 72px); letter-spacing: -.05em; }
h1 em, h2 em { padding: 0 .08em; background: var(--accent); font-style: normal; }
.hero-text { max-width: 560px; margin: 25px 0 30px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 14px; padding: 13px 21px; border: 0; border-radius: 5px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: #3a4148; box-shadow: 0 8px 20px #252a3024; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--surface-deep); }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatars { display: flex; flex: 0 0 auto; }
.avatars span { display: grid; width: 35px; height: 35px; margin-left: -7px; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: #dfe2e5; font-size: 10px; font-weight: 800; }
.avatars span:first-child { margin-left: 0; }
.trust strong, .trust small { display: block; }
.trust strong { font-size: 12px; }
.trust small { color: var(--muted); font-size: 11px; }

.browser { padding: 10px; border: 1px solid #42484e; border-radius: 12px; background: #292e34; box-shadow: 0 25px 70px #1b25321c; }
.browser-bar { display: flex; height: 30px; align-items: center; gap: 5px; color: #c1c6ca; font-size: 9px; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #7b838a; }
.browser-bar b { margin: auto; font-weight: 500; }
.mock-site { min-height: 400px; padding: 25px; border-radius: 4px; background: var(--white); }
.mock-nav { display: flex; justify-content: space-between; gap: 15px; font-size: 9px; letter-spacing: .04em; }
.mock-nav strong { font-size: 12px; }
.mock-content { display: grid; grid-template-columns: minmax(0, 1fr) .7fr; gap: 22px; margin-top: 42px; }
.mock-content small, .project-body small { font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.mock-content h2 { margin: 12px 0; font-size: 38px; }
.mock-content h2 i { font-style: normal; }
.mock-content p { max-width: 230px; color: #687078; font-size: 10px; }
.mock-content button, .project-body button { padding: 9px 13px; border: 0; background: #292e34; color: var(--white); font-size: 8px; }
.mock-photo { display: grid; min-height: 190px; place-items: center; background: linear-gradient(135deg, #d6d9dc, #92999f); color: var(--white); font-size: 18px; font-weight: 800; text-align: center; }
.mock-stats { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 10px; }
.mock-stats small { display: block; color: #879097; font-weight: 400; }

.logos { padding: 18px 0; border-bottom: 1px solid var(--line); }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #777f87; font-size: 11px; }
.logo-row span { font-size: 9px; letter-spacing: .12em; }
.page-hero { padding: clamp(38px, 5vw, 62px) 0 clamp(32px, 4vw, 48px); background: var(--surface); }
.page-hero h1 { max-width: 850px; }
.page-lede { max-width: 650px; margin: 18px 0 24px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.page-content { padding: clamp(38px, 5vw, 60px) 0; }
.page-content .section-head { margin-bottom: 30px; }
.page-content .steps { margin-top: 12px; }
.page-callout { margin-top: clamp(34px, 4vw, 50px); padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-callout p { max-width: 700px; margin: 10px 0 0; color: var(--muted); }
.section { padding: clamp(54px, 6.5vw, 78px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-head h2, .center-head h2, .contact h2 { margin-top: 13px; font-size: clamp(36px, 4.7vw, 58px); letter-spacing: -.045em; }
.section-head > p { max-width: 360px; color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cards article { padding: 26px 24px 14px 0; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.cards article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.cards article:hover { background: linear-gradient(180deg, #f8f9fa, transparent); }
.icon { margin-bottom: 28px; color: #626a72; font-size: 25px; }
.cards h3 { margin-bottom: 12px; font-size: 22px; }
.cards p { max-width: 300px; min-height: 70px; color: var(--muted); font-size: 14px; }
.cards a { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.cards a:hover { color: var(--muted); }

.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(34px, 6vw, 72px); }
.about-copy h2 { max-width: 560px; margin-top: 13px; font-size: clamp(38px, 4.7vw, 58px); letter-spacing: -.045em; }
.about-copy p { max-width: 530px; color: var(--muted); }
.about-copy .text-link { display: inline-flex; margin-top: 12px; }
.about-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-panel::after { position: absolute; z-index: -1; top: -105px; right: -90px; width: 260px; height: 260px; border: 1px solid #d5d9dc; border-radius: 50%; content: ""; box-shadow: 0 0 0 24px #ffffff36, 0 0 0 48px #ffffff20; }
.about-panel-label { color: #656d75; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.about-panel h3 { margin-top: 16px; font-size: clamp(30px, 3.5vw, 40px); letter-spacing: -.035em; }
.about-points { margin-top: 24px; }
.about-points > div { display: flex; align-items: flex-start; gap: 18px; padding: 12px 0; border-top: 1px solid #d9dde0; }
.about-points > div > span { padding-top: 2px; color: #737b82; font-size: 11px; font-weight: 800; }
.about-points p { display: grid; gap: 3px; margin: 0; }
.about-points b { font-size: 13px; }
.about-points small { color: var(--muted); font-size: 12px; }

.work { background: var(--surface); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.project-browser { height: 350px; padding: 16px 16px 0; overflow: hidden; background: var(--white); box-shadow: 0 12px 35px #0000000b; }
.mini-nav { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 800; }
.mini-nav span { color: #777f87; font-weight: 500; }
.project-body { height: 286px; margin-top: 18px; padding: 42px 30px; background: linear-gradient(135deg, #d8dbde, #aeb4b9); }
.project-two .project-body { background: linear-gradient(135deg, #e0e2e4, #a5abb1); }
.project-body h3 { margin: 13px 0 25px; font-size: 45px; }
.project > div:last-child { padding: 18px 3px; }
.project > div:last-child b, .project > div:last-child small { display: block; }
.project > div:last-child small { color: var(--muted); font-size: 11px; }

.center-head { max-width: 650px; margin: 0 auto 42px; text-align: center; }
.center-head p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps > div { padding: 0 25px; border-left: 1px solid var(--line); }
.steps > div:first-child { padding-left: 0; border: 0; }
.steps span { color: #626a72; font-size: 12px; font-weight: 800; }
.steps h3 { margin: 24px 0 10px; font-size: 19px; }
.steps p { color: var(--muted); font-size: 13px; }
.cta { padding: clamp(52px, 6vw, 68px) 0; background: var(--dark); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin-top: 13px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
.cta h2 em { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 82px); }
.contact p { max-width: 430px; margin: 25px 0 35px; color: var(--muted); }
.contact-detail { display: flex; max-width: 430px; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; }
.contact-detail span { color: var(--muted); text-align: right; }
form { display: grid; gap: 14px; }
label { font-size: 12px; font-weight: 700; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 13px; border: 1px solid #cbd0d4; border-radius: 5px; background: var(--white); color: var(--ink); font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: #7d858c; outline: 0; box-shadow: 0 0 0 3px #7d858c1c; }
textarea { resize: vertical; }
form .btn { width: max-content; }
#form-note { color: #596168; }
footer { padding: 22px 0; background: #eceef0; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #737b80; font-size: 11px; }
.footer .logo img { width: 56px; height: 64px; }
.nav .logo { animation: logo-arrive .8s cubic-bezier(.2, .7, .25, 1); }
.footer a:not(.logo) { color: #737b80; text-decoration: none; }
.footer a:not(.logo):hover { color: var(--ink); }

html.has-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .25, 1), transform .7s cubic-bezier(.2, .7, .25, 1); }
html.has-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.has-motion .text-motion { opacity: 0; transform: translateY(12px); animation: text-rise .62s cubic-bezier(.2, .7, .25, 1) both; animation-delay: var(--text-delay, 0ms); }
.cards article:nth-child(2), .steps > div:nth-child(2), .project:nth-child(2) { transition-delay: .1s; }
.cards article:nth-child(3), .steps > div:nth-child(3) { transition-delay: .18s; }
.steps > div:nth-child(4) { transition-delay: .26s; }

@keyframes logo-arrive {
  from { opacity: 0; transform: translateY(-8px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logo-colors {
  0%, 100% { filter: brightness(0) saturate(100%) invert(39%) sepia(84%) saturate(1624%) hue-rotate(223deg) brightness(98%) contrast(94%); }
  50% { filter: brightness(0) saturate(100%) invert(42%) sepia(83%) saturate(1500%) hue-rotate(145deg) brightness(97%) contrast(94%); }
}
@keyframes text-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid { gap: 38px; }
  .section-head { align-items: start; gap: 28px; }
  .steps > div { padding-inline: 18px; }
  .about-grid { gap: 42px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 36px, 600px); }
  section[id] { scroll-margin-top: 76px; }
  .nav { min-height: 76px; }
  .nav .logo img { width: 58px; height: 66px; }
  .menu { display: grid; width: 42px; height: 42px; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); cursor: pointer; }
  .menu span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 20px #252a3010; }
  .nav-links.is-open { display: grid; }
  .nav-links a { padding: 13px 2px; }
  .nav-links .nav-cta { margin-top: 8px; padding: 12px 14px; text-align: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero { padding-block: 36px; }
  .page-content { padding-block: 34px; }
  .hero-visual { margin-top: 10px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 16px; }
  .cards, .projects { grid-template-columns: minmax(0, 1fr); }
  .cards article, .cards article + article { padding: 22px 0; border-left: 0; }
  .cards p { min-height: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .steps > div, .steps > div:first-child { padding: 0; border: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta .btn { margin-top: 4px; }
  .logo-row { flex-wrap: wrap; justify-content: flex-start; gap: 10px 20px; }
  .logo-row span { width: 100%; }
  .mock-content { margin-top: 30px; }
  .mock-site { min-height: 330px; }
  .project-browser { height: 315px; }
  .project-body { height: 250px; padding: 30px 25px; }
  .project-body h3 { font-size: 35px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .browser { padding: 8px; }
  .mock-site { padding: 18px; }
  .mock-nav span { font-size: 8px; }
  .mock-content { grid-template-columns: minmax(0, 1fr); }
  .mock-photo { display: none; }
  .mock-stats { flex-wrap: wrap; }
  .project-browser { height: 300px; padding-inline: 12px; }
  .project-body { height: 235px; padding: 26px 20px; }
  .project-body h3 { font-size: 32px; }
  .mini-nav span { font-size: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps h3 { margin-top: 12px; }
  .contact-detail { flex-direction: column; gap: 2px; }
  .contact-detail span { text-align: left; }
  form .btn { width: 100%; }
  .footer { flex-wrap: wrap; }
  .footer > span { width: 100%; order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
