/* Arcframe — Reusable components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition:
    transform var(--fast),
    background var(--fast),
    color var(--fast),
    border-color var(--fast);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--text);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-accent {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}
.tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.82rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.card-body {
  padding: clamp(1.2rem, 3vw, 2.25rem);
}
.project-card {
  position: relative;
  text-decoration: none;
  display: block;
}
.project-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-lg);
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform calc(var(--slow) * var(--motion)) var(--ease),
    filter var(--dur);
}
.project-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.1);
}
.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.project-card-title {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.project-card-category {
  color: var(--muted);
  font-size: 0.85rem;
}
.feature-card {
  min-height: 17rem;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-size: var(--step-4);
  letter-spacing: -0.06em;
}
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}
.logo-cloud span {
  min-height: 8rem;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: var(--step--1)/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.logo-cloud span:nth-child(5n) {
  border-right: 0;
}
.timeline {
  border-left: 1px solid var(--line);
  margin-left: 0.45rem;
}
.timeline-item {
  padding: 0 0 3rem 2rem;
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -0.39rem;
  top: 0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  border-radius: 50%;
}
.service-row {
  display: grid;
  grid-template-columns: 1.3fr 2fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.service-row:last-child {
  border-bottom: 1px solid var(--line);
}
.service-row h3,
.service-row p {
  margin: 0;
}
.service-row p {
  color: var(--muted);
}
.filter-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.masonry {
  columns: 3 18rem;
  column-gap: 1.5rem;
}
.masonry .project-card {
  break-inside: avoid;
  margin-bottom: 2rem;
}
.horizontal-shell {
  overflow: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1rem;
}
.horizontal-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}
.horizontal-track .project-card {
  width: min(68vw, 52rem);
  scroll-snap-align: start;
}
.fullscreen-portfolio {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.fullscreen-slide {
  min-height: 100svh;
  display: none;
  align-items: end;
  padding: 7rem var(--gutter) 4rem;
  background: var(--surface);
  position: relative;
}
.fullscreen-slide.is-active {
  display: flex;
}
.fullscreen-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.fullscreen-caption {
  position: relative;
  z-index: 2;
}
.fullscreen-controls {
  position: absolute;
  right: var(--gutter);
  bottom: 4rem;
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}
.quote {
  font: var(--step-3)/1.08 var(--serif);
  max-width: 28ch;
}
.avatar-art {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.avatar-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  text-decoration: none;
}
.article-card h3 {
  margin-bottom: 0.5rem;
}
.article-card time {
  color: var(--muted);
  font-size: 0.85rem;
}
.prose {
  font: clamp(1.12rem, 1rem + 0.4vw, 1.35rem)/1.75 var(--serif);
}
.prose h2,
.prose h3 {
  font-family: var(--sans);
  margin-top: 2.4em;
}
.prose blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: var(--step-2);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field-full {
  grid-column: 1/-1;
}
label {
  font-size: 0.9rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0.85rem 0.95rem;
  min-height: 48px;
}
textarea {
  min-height: 10rem;
  resize: vertical;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.2em;
}
.form-status {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.enquiry-shell {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 7rem);
}
.progress-list {
  position: sticky;
  top: 7rem;
  align-self: start;
  display: grid;
  gap: 0.7rem;
}
.progress-step {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
}
.progress-step:before {
  content: attr(data-step);
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--step--1)/1 var(--mono);
}
.progress-step.is-active {
  color: var(--text);
}
.progress-step.is-active:before,
.progress-step.is-complete:before {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.form-step[hidden] {
  display: none;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.accordion-item {
  border-top: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: none;
  text-align: left;
}
.accordion-panel {
  padding: 0 0 1.5rem;
  color: var(--muted);
}
.modal {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  width: min(90vw, 42rem);
  padding: 0;
  box-shadow: var(--shadow);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}
.modal-inner {
  padding: 2rem;
}
.tooltip {
  position: relative;
}
.tooltip:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  translate: -50%;
  background: var(--text);
  color: var(--bg);
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast);
}
.tooltip:hover:after,
.tooltip:focus-visible:after {
  opacity: 1;
}
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.pagination a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}
.loading-dot {
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}
.empty-state {
  padding: 3rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
}
.before-after {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after .after {
  clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
}
.compare-range {
  position: absolute;
  inset: auto 1rem 1rem;
  width: calc(100% - 2rem);
  z-index: 3;
}
.cursor-enhancer {
  position: fixed;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--text);
  border-radius: 50%;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  translate: -50% -50%;
  transition:
    width var(--fast),
    height var(--fast),
    background var(--fast),
    opacity var(--fast);
  mix-blend-mode: difference;
}
.cursor-enhancer.is-active {
  opacity: 1;
}
.cursor-enhancer.is-view {
  width: 4.5rem;
  height: 4.5rem;
  background: #fff;
}
.cursor-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 0.65rem;
  opacity: 0;
}
.cursor-enhancer.is-view .cursor-label {
  opacity: 1;
}
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 190;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.loader-mark:before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: var(--accent);
  border-radius: 50%;
  animation: orbit 0.8s linear infinite;
  transform-origin: 2.2rem 0;
}
.notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.code-swatch {
  font-family: var(--mono);
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: auto;
}

.form-status:empty {
  display: none;
}

.fullscreen-title,
.style-sample-h1 {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
