:root {
  --bg: #f3f2ee;
  --panel: #e8e6e0;
  --ink: #1b1b19;
  --ink-2: #55534d;
  --soft: #b4b1a8;
  --line: #dcd9d1;
  --card: #ffffff;
  --night: #262624;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3.2vw, 44px);
  --radius: clamp(20px, 2.6vw, 36px);
  --h: clamp(64px, 10.4vw, 158px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.top a { text-decoration: none; }
.brand { font-weight: 600; }
.nav { display: grid; grid-template-columns: auto auto; gap: 2px 34px; }
.nav a { position: relative; padding-left: 12px; }
.nav a::before { content: ''; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity .2s; }
.nav a:hover::before, .nav a:first-child::before { opacity: 1; }
.top-cta { justify-self: end; border-bottom: 1px solid currentColor; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 53%;
  column-gap: 32px;
  padding-top: clamp(28px, 4vw, 56px);
}
.hero h1 {
  grid-column: 1 / -1;
  font: 400 var(--h)/.9 var(--serif);
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.hero h1 span { display: block; }
.hero-sub { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; max-width: 15em; font-size: 15px; color: var(--ink-2); }
.hero-img { position: relative; grid-column: 2; grid-row: 2; margin-top: calc(var(--h) * -.88); }
.hero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Hero device display: real store screens on a monitor, laptop and tablet */
.dev-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 95% at 72% 18%, #f4f4f5 0%, #e2e3e6 55%, #d3d4d8 100%);
}
.dev {
  position: absolute;
  background: #141416;
  box-shadow: 0 2.4vw 4.4vw -1.6vw rgba(18, 18, 28, .45), 0 .6vw 1.4vw -.4vw rgba(18, 18, 28, .25);
}
.dev .scr { width: 100%; height: 100%; overflow: hidden; background: #fff; }
.dev-stage .dev img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; border-radius: 0; }
.monitor { left: 5%; top: 7%; width: 60%; aspect-ratio: 16 / 10; padding: 1%; border-radius: 1.4% / 2.2%; }
.laptop { right: 6%; top: 31%; width: 54%; aspect-ratio: 16 / 10; padding: 1.2% 1.2% 1.6%; border-radius: 2.2% 2.2% 0 0 / 3.4% 3.4% 0 0; }
.laptop::after {
  content: '';
  position: absolute;
  left: -7%; right: -7%; top: 100%;
  height: 5.5%;
  background: linear-gradient(#e4e5e8, #b7b8bc);
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  box-shadow: 0 1.2vw 1.6vw -1vw rgba(18, 18, 28, .5);
}
.tablet { left: 9%; top: 58%; width: 34%; aspect-ratio: 4 / 3; padding: 1.3%; border-radius: 4.5% / 6%; }
.tablet .scr { border-radius: 2.4% / 3.2%; }

.scroll-badge {
  position: absolute;
  right: clamp(-10px, -1vw, 0px);
  bottom: clamp(-10px, -1vw, 0px);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  grid-template-columns: auto auto; gap: 6px;
  align-content: center;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 0 8px var(--bg);
}
.scroll-badge svg { width: 14px; height: 14px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-badge svg { animation: none; } }

/* Section labels and intro paragraphs */
.label {
  display: flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-2);
}
.arrow { width: 44px; height: 1px; background: currentColor; position: relative; }
.arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding-top: clamp(64px, 9vw, 130px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.intro-text { display: grid; gap: 1.1em; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.42; font-weight: 400; letter-spacing: -.01em; max-width: 22em; }
.intro-text em { font-style: normal; color: var(--soft); }

/* Section heads */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2, .contact h2 { font: 400 clamp(44px, 6.4vw, 96px)/.95 var(--serif); letter-spacing: -.015em; }
.note { color: var(--ink-2); max-width: 34em; font-size: 14px; }

/* Featured work */
.work { padding-top: clamp(24px, 3vw, 40px); }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 100px);
}
.work-item.flip { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
.work-item.flip .panel { order: 2; }
.panel {
  display: block;
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(18px, 3.4vw, 52px);
  text-decoration: none;
}
.frame {
  background: var(--card);
  border-radius: clamp(10px, 1.2vw, 16px);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(27, 27, 25, .35);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.panel:hover .frame { transform: translateY(-6px); }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid #eceae4; }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: #dad7cf; }
.bar span { margin: 0 auto; transform: translateX(-14px); font-size: 10px; color: #8d8a82; background: #f3f2ee; padding: 2px 14px; border-radius: 99px; letter-spacing: .02em; }
.shot { aspect-ratio: 16 / 10; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 5s ease-in-out; }
.panel:hover .shot img, a:hover > .frame .shot img { object-position: bottom; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }

.caption { display: grid; gap: 10px; align-content: center; }
.num { font-size: 11px; letter-spacing: .14em; color: var(--ink-2); }
.mark { position: relative; width: 128px; height: 64px; border-radius: 14px; }
.mark img { position: absolute; left: 14%; top: 18%; width: 72%; height: 64%; object-fit: contain; }
.caption h3 { font: 400 clamp(34px, 3.4vw, 52px)/1 var(--serif); }
.kind { color: var(--ink-2); }
.link { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* More stores */
.more-title { font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); margin: 0 0 28px; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.more a { display: grid; gap: 14px; text-decoration: none; background: var(--panel); border-radius: calc(var(--radius) * .7); padding: clamp(14px, 1.6vw, 22px); }
.more a:hover .frame { transform: translateY(-4px); }
.more p { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.more p span { color: var(--ink-2); text-align: right; }
.more .bar { height: 22px; }
.more .bar i { width: 6px; height: 6px; }
.more .bar span { font-size: 9px; }

/* Services */
.services { display: grid; gap: clamp(40px, 6vw, 90px); padding-bottom: clamp(72px, 10vw, 150px); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-left: clamp(0px, 6vw, 110px);
}
.svc.flip { grid-template-columns: auto minmax(0, 1fr); padding-left: 0; padding-right: clamp(0px, 6vw, 110px); }
.svc.flip .svc-img { order: -1; }
.svc-tag { display: flex; gap: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.svc h3 { font: 300 clamp(36px, 4.4vw, 64px)/1.05 var(--sans); letter-spacing: -.025em; }
.svc-text > p:last-child { margin-top: 16px; max-width: 26em; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); }
.svc-img {
  width: clamp(220px, 26vw, 340px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34% 18% 34% 18% / 30% 18% 30% 18%;
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), border-radius .6s;
}
.svc.flip .svc-img { transform: rotate(3deg); border-radius: 18% 34% 18% 34% / 18% 30% 18% 30%; }
.svc:hover .svc-img { transform: rotate(0); border-radius: 24%; }

/* Brand wall */
.brands { padding-bottom: clamp(72px, 10vw, 150px); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; transition: transform .3s; }
.tile img { position: absolute; left: 17%; top: 22%; width: 66%; height: 56%; object-fit: contain; }
.tile:hover { transform: translateY(-3px); }
.tone-light { background: var(--card); }
.tone-dark { background: var(--night); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding-bottom: clamp(80px, 11vw, 160px);
}
.contact-body { display: grid; gap: 22px; }
.contact h2 em { font-style: italic; color: var(--ink-2); }
.contact-body > p { font-size: clamp(17px, 1.5vw, 21px); max-width: 26em; color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 99px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 8px; }
.contact-form[hidden] { display: none; }
.contact-form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px;
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-error { flex: 1 1 18em; color: #a3261b; font-size: 15px; }
.form-error a, .contact-alt a { font-weight: 500; white-space: nowrap; }
.contact-thanks { font: 400 clamp(26px, 2.6vw, 36px)/1.2 var(--serif); max-width: 22em; }
.contact-thanks:focus { outline: none; }
.contact-alt { color: var(--ink-2); font-size: 15px; }

/* Footer */
.foot { background: var(--night); color: #d9d7d0; font-size: 13px; padding-top: 64px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 32px; padding-bottom: 72px; }
.foot-name, .foot-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; font-weight: 500; }
.foot-about p:last-child { max-width: 24em; color: #a9a69e; }
.to-top { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; justify-self: end; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #3a3a37; color: #8f8c84; font-size: 12px; }

/* Scroll reveal (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet and phone */
@media (max-width: 900px) {
  :root { --h: clamp(48px, 13.4vw, 120px); }
  .top { grid-template-columns: 1fr auto; gap: 14px 0; }
  .nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 20px; }
  .top-cta { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { grid-column: 1; grid-row: 3; margin-top: 28px; }
  .intro, .contact { grid-template-columns: 1fr; gap: 22px; }
  .work-item, .work-item.flip { grid-template-columns: 1fr; gap: 20px; }
  .work-item.flip .panel { order: 0; }
  .caption { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .caption .num { grid-column: 1 / -1; }
  .caption .mark { grid-row: span 3; width: 96px; height: 52px; }
  .svc, .svc.flip { grid-template-columns: 1fr; padding: 0; gap: 22px; }
  .svc.flip .svc-img { order: 0; }
  .svc-img { width: min(78%, 340px); }
  .svc.flip .svc-img { justify-self: end; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .to-top { writing-mode: horizontal-tb; justify-self: start; }
}
@media (max-width: 520px) {
  .scroll-badge { width: 72px; height: 72px; font-size: 8px; }
  .foot-base { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { grid-template-columns: 1fr; }
}
