@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --paper: #efeae2;
  --paper-soft: #f6f2ec;
  --paper-deep: #e6dfd4;
  --ink: #2b2624;
  --ink-soft: #625a55;
  --line: rgba(43, 38, 36, 0.18);
  --line-soft: rgba(43, 38, 36, 0.09);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1240px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 38, 36, 0.06), 0 10px 30px -12px rgba(43, 38, 36, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 12.5px; font-weight: 550; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 18ch; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 36em; }
.note { color: var(--ink-soft); max-width: 40em; margin-top: 18px; }

/* Header */
.top { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.brand { font-family: var(--serif); font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
@media (min-width: 760px) { .nav { display: flex; } }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; min-width: 40px; height: 30px; border-radius: 999px; color: var(--ink-soft); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15.5px; font-weight: 550; text-decoration: none; transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #3d3633; }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper-soft); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Hero */
.hero { display: grid; gap: 44px; padding-top: 28px; padding-bottom: 88px; align-items: center; }
.hero-text h1 { max-width: 14ch; }
.hero-text .lead { margin-top: 26px; }
.hero-media { position: relative; padding-bottom: 14%; }
.hero-main { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-deep); }
.hero-inset { position: absolute; left: 14px; bottom: 0; width: 46%; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); border: 5px solid var(--paper); }
.hero-inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 699px) { .hero-inset { left: 10px; width: 44%; border-width: 4px; } }
@media (min-width: 700px) and (max-width: 999px) { .hero-inset { width: 40%; } }
@media (min-width: 1000px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 64px; padding-top: 48px; padding-bottom: 120px; }
  .hero-inset { left: -6%; }
}

/* Gallery */
.work { padding-bottom: 110px; }
.section-head { margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { cursor: pointer; border: 1px solid var(--line); background: transparent; border-radius: 999px; min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip .count { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: 2px; }
@media (max-width: 420px) { .chip { padding: 0 13px; } .chip .count { display: none; } .filters { gap: 6px; } }
.more-row { display: flex; justify-content: center; margin-top: 40px; }
.more-row .btn { cursor: pointer; background: transparent; }
[hidden] { display: none !important; }
.chip:hover { background: var(--paper-soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .count { color: rgba(239, 234, 226, 0.72); }

.grid { list-style: none; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid > li { min-width: 0; }

.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius); background: var(--paper-soft); border: 1px solid var(--line-soft); overflow: hidden; transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--paper-deep); overflow: hidden; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media > img { transform: scale(1.025); }
.logo-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; height: 46px; max-width: calc(100% - 24px); padding: 0 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(43, 38, 36, 0.12), 0 4px 14px -6px rgba(43, 38, 36, 0.25); }
.logo-chip img { max-height: 30px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.logo-chip.is-square img { max-height: 36px; }
.logo-chip.is-dark { background: #2b2624; }
.logo-chip.is-text { font-family: var(--serif); font-size: 19px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 18px 18px; flex: 1; }
.card-text { min-width: 0; }
.card-title { font-size: 16.5px; }
.card-meta { margin-top: 3px; font-size: 14px; color: var(--ink-soft); }
.card-open { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.card-open .arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.2s, color 0.2s; }
.card:hover .card-open .arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 420px) { .card-open-label { display: none; } }

/* Features */
.features { background: var(--paper-soft); border-block: 1px solid var(--line-soft); padding-block: 100px; }
.feature-list { display: grid; gap: 72px; }
.feature { display: grid; gap: 26px; align-items: center; }
.feature-media img { width: 100%; border-radius: 12px; background: var(--paper-deep); }
.feature-media > img { aspect-ratio: 7 / 5; object-fit: cover; box-shadow: var(--shadow); }
.feature-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-media.pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.feature-text .num { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink-soft); margin-bottom: 10px; }
.feature-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.feature-text p { margin-top: 12px; color: var(--ink-soft); max-width: 30em; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(260px, 64vw); padding: 9px; background: #1d1a19; border-radius: 38px; box-shadow: var(--shadow); }
.phone img { border-radius: 30px; aspect-ratio: 390 / 844; object-fit: cover; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 7fr 5fr; gap: 64px; }
  .feature:nth-child(even) .feature-media { order: 2; }
}

/* How */
.how { padding-block: 110px; }
.steps { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 21px; margin-bottom: 22px; }
.steps p { margin-top: 8px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); padding-block: 110px; }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; }
.contact .eyebrow { color: rgba(239, 234, 226, 0.7); }
.contact h2 { max-width: 16ch; }
.contact .lead { color: rgba(239, 234, 226, 0.78); margin-top: 22px; }
.contact .btn { margin-top: 34px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 34px 40px; font-size: 14px; color: var(--ink-soft); }
.foot-name { color: var(--ink); font-weight: 550; }
.foot-note { margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover, .card:hover .card-media > img { transform: none; }
}
