/* ============================================================
   Инженер и кофе — one-pager
   Палитра: бумага / чернила / кофе / blueprint / янтарь
   ============================================================ */

:root {
  --paper: #f6f3eb;
  --paper-2: #fbf9f3;
  --paper-3: #efebe0;
  --ink: #17140f;
  --muted: #6e675c;
  --line: #dcd5c6;
  --coffee: #6b4630;
  --blue: #2f4f6f;
  --amber: #c98a3e;

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans:
    "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1280px;
  --sec: clamp(56px, 7vw, 96px);
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
::selection {
  background: var(--coffee);
  color: var(--paper);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 3px;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 235, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 235, 0.94);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img {
  height: 38px;
  width: auto;
}
.logo > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo .name {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .name i {
  font-style: italic;
  color: var(--coffee);
}
.logo .sub {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: #2c271f;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--coffee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  padding: 12px 22px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.btn .arr {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn:hover .arr {
  transform: translateX(3px);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--coffee);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.btn-big {
  font-size: 16px;
  padding: 15px 28px;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    rgba(23, 20, 15, 0.055) 1px,
    transparent 1px
  );
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 88%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 88%
  );
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow .rule {
  width: 44px;
  height: 1px;
  background: var(--ink);
  opacity: 0.45;
  flex: 0 0 auto;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(37px, 8.6vw, 70px);
  line-height: 0.94;
  letter-spacing: -0.022em;
  margin: 0 0 26px;
}
h1 em {
  font-style: italic;
  color: var(--coffee);
}
h1 .hyphen {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  display: inline-block;
  line-height: 1;
  vertical-align: bottom;
}

.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.5;
  color: #332e25;
  max-width: 46ch;
  margin: 0 0 30px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 34px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}
.link-arrow svg {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.link-arrow:hover {
  color: var(--coffee);
  border-color: var(--coffee);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  width: 100%;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coffee);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(107, 70, 48, 0.35);
  animation: pulse 3.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 70, 48, 0.28);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(107, 70, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(107, 70, 48, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot-live {
    animation: none;
  }
}

.hero-art {
  position: relative;
}
.hero-art svg {
  width: 100%;
  height: auto;
}

/* ---------------- sections ---------------- */

section {
  position: relative;
}
.section {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  margin-bottom: clamp(34px, 4vw, 56px);
}

.sec-title {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 22px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.sec-text {
  display: block;
}
.sec-title em {
  font-style: italic;
  color: var(--coffee);
}
.sec-index {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: clamp(13px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--coffee);
  line-height: 1;
  padding-top: 0.3em;
}

/* ---------------- works ---------------- */

.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 375px));
  justify-content: start;
  gap: 24px;
  align-items: start;
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  min-height: min-content;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.case:hover {
  border-color: #c9bfab;
  background: var(--paper-2);
}

/* variety only in the figure, card height follows the text */
.case-tall .case-fig {
  aspect-ratio: 3/4;
}
.case-mid .case-fig {
  aspect-ratio: 4/3;
}
.case-short .case-fig {
  aspect-ratio: 16/10;
}

.case-fig {
  flex: 0 0 auto;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(90deg, rgba(23, 20, 15, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 20, 15, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.case-fig svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.case-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 0 0 auto;
}
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.case-top .mono {
  font-size: 9.5px;
}
.case-arrow {
  display: inline-flex;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.case:hover .case-arrow {
  transform: translateX(4px);
  color: var(--coffee);
}

.case h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.25s ease;
}
.case:hover h3 {
  color: var(--coffee);
}
.case p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.case-metrics {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coffee);
}
.case .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.case .tag {
  font-size: 8.5px;
  padding: 4px 7px;
}

.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #574f42;
  border: 1px solid var(--line);
  padding: 5px 9px;
  background: var(--paper);
  white-space: nowrap;
}

.works-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------------- services ---------------- */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.svc-col,
.svc-panels {
  min-width: 0;
}

.svc-list {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.svc-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(16px, 1.8vw, 22px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  color: #6e675c;
  transition: color 0.3s ease;
}
.svc-tab:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-tab:hover {
  color: var(--ink);
}
.svc-tab[aria-selected="true"] {
  color: var(--coffee);
}

.svc-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: currentColor;
  align-self: start;
  padding-top: 6px;
}
.svc-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.svc-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-tab[aria-selected="true"] .svc-arrow {
  opacity: 1;
  transform: none;
}

.svc-panel {
  display: grid;
  gap: 20px;
  animation: svcIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-panel[hidden] {
  display: none;
}
@keyframes svcIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.svc-fig {
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(90deg, rgba(23, 20, 15, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(23, 20, 15, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: clamp(12px, 1.6vw, 20px);
}
.svc-fig svg {
  display: block;
  width: 100%;
  height: auto;
}

.svc-desc {
  display: grid;
  gap: 14px;
}
.svc-desc p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #3a342a;
  max-width: 58ch;
}
.svc-desc .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc-note a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.svc-note a:hover {
  color: var(--coffee);
  border-color: var(--coffee);
}

/* ---------------- team ---------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 375px));
  justify-content: start;
  gap: clamp(16px, 2.4vw, 32px);
}

.person {
  display: flex;
  flex-direction: column;
}

.photo {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  background: var(--paper-2);
  width: 100%;
  overflow: hidden;
  background-image:
    linear-gradient(
      to top right,
      transparent calc(50% - 0.5px),
      var(--line) 50%,
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      to bottom right,
      transparent calc(50% - 0.5px),
      var(--line) 50%,
      transparent calc(50% + 0.5px)
    );
  background-size: 100% 100%;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 0%;
  display: block;
}
.photo .lbl {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.photo .init {
  position: absolute;
  right: 14px;
  top: 8px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 58px;
  line-height: 1;
  color: var(--coffee);
  opacity: 0.16;
}
.person .body {
  padding-top: 16px;
}
.person h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.person .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coffee);
}
.person p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------------- contact ---------------- */

.contact {
  border-bottom: 0;
  padding: var(--sec) 0 clamp(48px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    rgba(23, 20, 15, 0.05) 1px,
    transparent 1px
  );
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 45%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 45%,
    transparent 100%
  );
}
.contact-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.contact .sec-title {
  font-size: clamp(38px, 4.6vw, 66px);
  margin-bottom: 20px;
}
.contact p {
  font-size: 16px;
  line-height: 1.55;
  color: #332e25;
  max-width: 40ch;
  margin: 0 0 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #3a342a;
}
.steps .mono {
  font-size: 9.5px;
  color: var(--coffee);
  flex: 0 0 auto;
}

.form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(22px, 2.6vw, 34px);
}
.field {
  display: grid;
  gap: 8px;
}
.field label,
.f-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.45;
  padding: 7px 0 10px;
  transition: border-color 0.25s ease;
}
.field textarea {
  resize: none;
  min-height: 84px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a79e8d;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--coffee);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.field label.file,
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 1px dashed #c9bfab;
  background: var(--paper);
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.file:hover {
  border-color: var(--coffee);
  background: #f8f4ea;
}
.file input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.file-ico {
  color: var(--coffee);
  display: inline-flex;
  flex: 0 0 auto;
}
.file-txt {
  font-size: 14px;
  color: var(--ink);
}
.file-name {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 52%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.4;
  color: #3a342a;
  position: relative;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.check .box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid #c9bfab;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.check .box svg {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.check input:checked + .box {
  background: var(--coffee);
  border-color: var(--coffee);
}
.check input:checked + .box svg {
  opacity: 1;
}
.check input:focus-visible + .box {
  outline: 2px solid var(--coffee);
  outline-offset: 2px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ---------------- footer ---------------- */

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}
.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13.5px;
  text-decoration: none;
  color: #3a342a;
}
.footer-nav a:hover {
  color: var(--coffee);
}
.footer-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------------- reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 80;
  white-space: nowrap;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .works {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .works,
  .team {
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  }
}

@media (max-width: 1080px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-art {
    max-width: 560px;
  }
}

@media (max-width: 900px) {
  .svc {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .svc-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 0 20px 8px 0;
    scrollbar-width: none;
  }
  .svc-list::-webkit-scrollbar {
    display: none;
  }
  .svc-tab {
    border: 1px solid var(--line);
    padding: 10px 14px;
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    gap: 8px;
    align-items: baseline;
  }
  .svc-tab:last-child {
    border-bottom: 1px solid var(--line);
  }
  .svc-num {
    padding-top: 0;
    font-size: 9px;
  }
  .svc-name {
    font-size: 19px;
  }
  .svc-arrow {
    display: none;
  }
  .svc-tab[aria-selected="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
  .svc-tab[aria-selected="true"] .svc-num {
    color: var(--paper);
  }
  .svc-note {
    display: none;
  }
  .contact-in {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 760px) {
}

@media (max-width: 640px) {
  .header-in {
    height: 66px;
  }
  .logo img {
    height: 32px;
    width: auto;
  }
  .logo .name {
    font-size: 20px;
  }
  .logo .sub {
    font-size: 7px;
    letter-spacing: 0.18em;
  }
  .header-cta .btn {
    padding: 10px 14px;
    font-size: 12.5px;
    gap: 7px;
  }
  .header-cta .btn .arr {
    width: 12px;
    height: 12px;
  }
  .hero-in {
    padding-top: 32px;
  }
  .footer-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .form {
    padding: 20px;
  }
  .file-name {
    display: none;
  }
}

/* form feedback */
.form-errors {
  border: 1px solid #c08a63;
  background: #f8efe6;
  color: #7a3b1e;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.form-foot .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.filter-tag {
  cursor: pointer;
}
.filter-tag:hover {
  border-color: var(--coffee);
  color: var(--ink);
}
