:root {
  --bg: #f4f2ec;
  --paper: #fbfaf7;
  --ink: #111111;
  --muted: #6b6963;
  --rule: 3px solid var(--ink);
  --hair: 1px solid #d9d6cd;
  --red: #d7262b;
  --yellow: #f2b632;
  --blue: #2a6fa8;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav-bar { border-bottom: var(--rule); position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.brand img { width: 36px; height: 36px; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; font-size: 16px; }
.nav ul a { position: relative; padding: 4px 0; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav ul a:hover::after { transform: scaleX(1); }

/* Hero */
.hero-bar { border-bottom: var(--rule); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* photo bleeds to the right edge of the screen; text keeps the page margin */
  max-width: none; margin-right: 0; padding-right: 0;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 72px) clamp(48px, 6vw, 96px) 0; border-right: var(--rule); }
.shapes { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; }
.shapes i { display: block; width: 14px; height: 14px; }
.shapes .c { background: var(--red); border-radius: 50%; }
.shapes .s { background: var(--yellow); }
.shapes .t { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--blue); }
h1 {
  font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
h1 span { font-weight: 400; color: var(--muted); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 44ch; margin-top: 28px; }
.btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  padding: 14px 22px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--yellow); color: var(--ink); }
.hero figure { position: relative; }
.hero figure img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }
.hero figure::after {
  content: ""; position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px;
  background: var(--yellow); border-radius: 50%;
}

/* Clients */
.clients {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 clamp(16px, 3vw, 40px); border-bottom: var(--hair);
}
.clients img {
  width: 100%; max-width: 120px; height: 34px; margin: 34px auto;
  object-fit: contain; filter: brightness(0); opacity: .55; transition: opacity .2s;
}
.clients img:hover { opacity: 1; }

/* Work */
.section-head { display: flex; justify-content: space-between; align-items: end; padding: clamp(80px, 10vw, 130px) 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); }
h2 { font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
.link-arrow { font-size: 16px; font-weight: 500; border-bottom: var(--rule); padding-bottom: 2px; }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.card { border: var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.card.featured { grid-column: 1 / -1; }
.media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  display: grid; place-items: center; border-bottom: var(--rule);
}
.card.featured .media { aspect-ratio: 16 / 8; }
.media .blur {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  filter: blur(36px) saturate(1.2) brightness(1.05); transform: scale(1.1); opacity: .9;
}
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; }
.card h3 { font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.card .arrow {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: var(--rule); font-size: 18px; transition: background .25s, transform .25s;
}
.card:nth-child(3n+1):hover .arrow { background: var(--yellow); }
.card:nth-child(3n+2):hover .arrow { background: var(--red); color: var(--paper); }
.card:nth-child(3n):hover .arrow { background: var(--blue); color: var(--paper); }

/* Desktop mockup */
.mockup {
  position: relative; width: 78%;
  background: var(--paper); border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(17,17,17,.45), 0 0 0 1px rgba(17,17,17,.12);
  transition: transform .9s cubic-bezier(.34,1.56,.64,1), opacity .6s ease;
}
.card.featured .mockup { width: 62%; }
.mockup .bar { display: flex; gap: 6px; align-items: center; height: 24px; padding: 0 12px; background: #ecebe6; border-bottom: 1px solid #dddbd3; }
.mockup .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c6bd; }
.mockup .screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.mockup .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mockup .screen img.crop-qima { position: absolute; width: 173.7%; height: 156.3%; max-width: none; left: -65.8%; top: -29.6%; }
.card:hover .mockup { transform: translateY(-8px); }
.js .card .mockup, .js .shot .mockup { opacity: 0; transform: translateY(48px) scale(.92); }
.js .card.in-view .mockup, .js .shot.in-view .mockup { opacity: 1; transform: none; }
.js .card.in-view:hover .mockup { transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  .mockup { transition: none; }
  .js .card .mockup, .js .shot .mockup { opacity: 1; transform: none; }
}

/* Card extras: a drawer floating over a dashboard, a phone next to a desktop */
.media .drawer, .media .phone {
  position: absolute; z-index: 2;
  box-shadow: 0 24px 48px -16px rgba(17,17,17,.5), 0 0 0 1px rgba(17,17,17,.12);
  transition: transform .9s cubic-bezier(.34,1.56,.64,1) .45s, opacity .5s ease .45s;
}
.media .drawer { right: 9%; top: 16%; height: 68%; width: auto; border-radius: 6px; }
.card.featured .media .drawer { right: 17%; top: 18%; height: 66%; }
.media.with-phone .mockup { margin-right: 14%; }
.media .phone { right: 7%; bottom: 8%; height: 78%; aspect-ratio: 9 / 20.8; padding: 5px; background: var(--ink); border-radius: 16px; }
.phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 11px; background: #22272d; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.js .card .media .drawer, .js .card .media .phone { opacity: 0; transform: translateX(40px); }
.js .card.in-view .media .drawer, .js .card.in-view .media .phone { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .media .drawer, .media .phone { transition: none; }
  .js .card .media .drawer, .js .card .media .phone { opacity: 1; transform: none; }
}

/* Footer */
.footer { background: var(--ink); color: var(--paper); margin-top: clamp(96px, 12vw, 160px); font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px; padding: 72px 0 64px;
}
.footer-sentence { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 24ch; color: #8f8d86; }
.footer-sentence strong { color: var(--paper); font-weight: 500; }
.footer-label { color: var(--yellow); font-weight: 500; margin-top: 32px; }
.copy-wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; }
.copy-email {
  font: inherit; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--paper); background: none; border: 0;
  padding: 0 0 2px; cursor: pointer; border-bottom: 3px solid var(--yellow); transition: color .2s;
}
.copy-email:hover { color: var(--yellow); }
.copied { color: var(--yellow); font-size: 14px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.copied.show { opacity: 1; transform: none; }
.footer h4 { font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8f8d86; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #d8d6cf; transition: color .2s; }
.footer ul a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0 32px; border-top: 1px solid #2c2c2c; color: #8f8d86; font-size: 13px;
}
.footer-bottom .shapes { margin: 0; }
.footer-bottom a:hover { color: var(--paper); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { border-right: 0; padding-right: 0; }
  .hero { padding-right: var(--gutter); }
  .hero figure { order: -1; border-bottom: var(--rule); margin: 0 calc(var(--gutter) * -1); }
  .hero figure img { aspect-ratio: 1 / 1; height: auto; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients img { margin: 20px auto; }
  .work { grid-template-columns: 1fr; }
  .card.featured .media { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nav ul li.hide-sm { display: none; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .card .mockup, .card.featured .mockup { width: 84%; }
  .footer-bottom .shapes { display: none; }
}

/* Shared: active nav, reveal on scroll */
.nav ul a.active::after { transform: scaleX(1); }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .9s cubic-bezier(.34,1.56,.64,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Shared: lift on hover for bordered cards */
.card, .lift { transition: transform .3s, box-shadow .3s; }
.card:hover, .lift:hover, .js .lift.in-view:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); transition: transform .3s, box-shadow .3s; }

.copy-email { display: inline-flex; align-items: center; gap: 10px; }
.copy-icon { flex: none; opacity: .8; }
.copy-email:hover .copy-icon { opacity: 1; }
#work { scroll-margin-top: 96px; }

/* LinkedIn icon in the nav */
.nav ul { align-items: center; }
.nav ul a.icon { display: grid; place-items: center; padding: 0; color: var(--ink); transition: color .2s; }
.nav ul a.icon::after { display: none; }
.nav ul a.icon:hover { color: var(--blue); }
.nav ul a.icon svg { width: 22px; height: 22px; display: block; }
