:root {
  --blue: #00a2ed;
  --black: #000000;
  --white: #ffffff;
  --max-width: 1120px;
  --gutter: 24px;
  --line: 2px solid var(--black);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: Georgia, "Times New Roman", serif;
  --body: Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { scroll-margin-top: 78px; }

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--black);
  background: var(--blue);
  font-weight: 700;
}

.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo { font-size: 1.3rem; letter-spacing: -0.03em; }
.logo-bold { font-weight: 800; }
.logo-light { font-weight: 300; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 26px; }

.nav-list a {
  position: relative;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-list a::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
  transition: right 0.25s var(--ease);
}

.nav-list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--line);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--black);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: var(--line);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { border-color: var(--blue); background: var(--blue); color: var(--black); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: var(--black); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.82rem; }
.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 128px;
  background: var(--black);
  color: var(--white);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
}

.eyebrow, .kicker {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
  font-family: var(--body);
  text-transform: uppercase;
}

.hero-title .accent { color: var(--blue); }
.hero-lead { max-width: 46ch; margin-bottom: 34px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-dark { border-color: var(--white); color: var(--white); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0 42px;
}

.browser-mock {
  width: min(100%, 400px);
  border: var(--line);
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  transform: rotate(-3deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-bottom: var(--line);
  background: var(--blue);
}

.dot { width: 8px; height: 8px; border: 1px solid var(--black); border-radius: 50%; background: var(--white); }
.dot-b { background: var(--black); }
.browser-url { display: block; flex: 1; height: 18px; margin-left: 8px; padding: 0 8px; overflow: hidden; border: 1px solid var(--black); background: var(--white); color: var(--black); font-size: 0.65rem; line-height: 16px; white-space: nowrap; }
.browser-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.mock-nav { width: 42%; height: 10px; background: var(--black); }
.mock-hero { height: 110px; border: var(--line); background: var(--blue); }
.mock-row { display: flex; gap: 10px; }
.mock-card { flex: 1; height: 56px; border: 1px solid var(--black); background: var(--white); }

.hero-avatar {
  position: absolute;
  right: 8px;
  bottom: 0;
  z-index: 2;
  width: 108px;
  height: 108px;
  border: 4px solid var(--black);
  border-radius: 50%;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 1;
  width: 28px;
  height: 42px;
  border: 2px solid var(--white);
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 9px;
  background: var(--blue);
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 70%, 100% { top: 8px; opacity: 1; }
  85% { top: 24px; opacity: 0; }
}

/* Sections */
.section { padding: 104px 0; }
.section-alt { border-top: var(--line); border-bottom: var(--line); background: var(--blue); }
.section-dark { background: var(--black); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.05em; }
.section-sub { font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about-lead { max-width: 48ch; font-size: 1.16rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px; border: var(--line); background: var(--white); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 24px; border: var(--line); background: var(--blue); }
.card-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--black); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.card p { margin-bottom: 24px; }
.card-list { padding-top: 18px; border-top: 1px solid var(--black); }
.card-list li { position: relative; margin-bottom: 9px; padding-left: 18px; font-size: 0.92rem; font-weight: 700; }
.card-list li::before { position: absolute; width: 8px; height: 8px; margin: 7px 0 0 -18px; background: var(--blue); content: ""; }

/* Work */
.work-card { display: grid; grid-template-columns: 1.3fr 1fr; border: var(--line); }
.work-shot { align-self: start; overflow: hidden; background: var(--white); }
.work-shot img { display: block; width: 100%; height: auto; border: var(--line); transition: transform 0.35s var(--ease); }
.work-shot:hover img { transform: scale(1.02); }
.work-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 36px; }
.work-copy h3 { font-size: 1.4rem; }

/* Process */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--white); }
.step:last-child { border-bottom: 1px solid var(--white); }
.step-num { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 2px solid var(--blue); color: var(--blue); font-size: 1.05rem; font-weight: 800; }
.step h3 { margin-bottom: 5px; font-size: 1.2rem; }

/* Contact */
.contact-note { max-width: 52ch; margin-bottom: 32px; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 18px; min-height: 106px; padding: 24px; border: var(--line); background: var(--white); }
.contact-card:hover { background: var(--blue); }
.contact-card .card-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-label { margin-bottom: 3px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.contact-value { font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 52px 0; border-top: 3px solid var(--blue); background: var(--black); color: var(--white); }
.footer-inner { text-align: center; }
.footer-tag { margin-top: 8px; color: var(--blue); font-weight: 700; }
.footer-meta { margin-top: 18px; font-size: 0.82rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 77px 0 0; display: flex; align-items: stretch; flex-direction: column; gap: 18px; padding: 28px var(--gutter); border-bottom: var(--line); background: var(--white); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-list { display: flex; flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--black); font-size: 1.05rem; }
  .nav .btn { align-self: flex-start; margin-top: 4px; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { justify-content: flex-start; }
  .about-grid, .cards, .work-card, .contact-grid { grid-template-columns: 1fr; }
  .work-shot { width: 100%; }
  .hero { padding: 78px 0 104px; }
  .section { padding: 76px 0; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .hero-title { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-avatar { right: -4px; width: 82px; height: 82px; }
  .work-copy { padding: 26px; }
}
