/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #14141a, #0c0c10);
  overflow: hidden;
}
.about-visual .photo-pl {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-visual .photo-pl::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,.015) 14px 28px);
  pointer-events: none;
}
.about-visual .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  display: flex; justify-content: space-between;
}
.about-visual .badge {
  position: absolute; top: 24px; left: 24px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; line-height: 1.1; text-align: center;
  color: var(--accent);
  background: rgba(10,10,11,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: rot 30s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.about-visual .badge .core {
  animation: rot 30s linear infinite reverse;
  display: inline-block;
}

.about-text .lede { font-size: clamp(17px, 1.3vw, 22px); color: var(--ink); max-width: 60ch; line-height: 1.45; margin-top: 24px; }
.about-text p.body { color: var(--ink-2); line-height: 1.65; margin: 24px 0 0; max-width: 58ch; }
.about-text p.body + p.body { margin-top: 16px; }

.about-facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.about-facts .f {
  padding: 24px;
  background: var(--bg);
}
.about-facts .f .n {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 42px); line-height: 1;
}
.about-facts .f .n .u { color: var(--accent); font-size: .55em; vertical-align: top; margin-left: 4px; }
.about-facts .f .l {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em;
  margin-top: 10px;
}

/* ============================================================
   SERVICES — 12 tiles
   ============================================================ */
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) { .svc-head { flex-direction: column; align-items: start; gap: 24px; } }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--bg-1);
  padding: 28px 24px 24px;
  position: relative;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.5,.1,.2,1);
  z-index: 0;
}
.svc:hover::before { transform: translateY(0); }
.svc > * { position: relative; z-index: 1; transition: color .35s ease; }
.svc:hover { color: #f4f4f5; }
.svc:hover .svc-num,
.svc:hover .svc-desc,
.svc:hover .svc-cta { color: rgba(244, 244, 245, 0.88); }

.svc-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  transition: border-color .35s ease;
  margin-bottom: 24px;
}
.svc:hover .svc-icon { border-color: rgba(255, 255, 255, 0.28); }
.svc-icon svg { width: 28px; height: 28px; stroke: var(--ink); transition: stroke .35s ease; }
.svc:hover .svc-icon svg { stroke: #f4f4f5; }

.svc-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: .14em; }
.svc-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; margin: 6px 0 8px; }
.svc-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; max-width: 24ch; }

.svc-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase;
}
.svc-cta .arr { transition: transform .3s ease; }
.svc:hover .svc-cta .arr { transform: translateX(6px); }

.svc-corner {
  position: absolute; top: 16px; right: 16px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: border-color .35s;
}
.svc:hover .svc-corner { border-color: rgba(255, 255, 255, 0.4); }

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,5,7,.72);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  animation: modalFade .25s ease forwards;
}
@keyframes modalFade { to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, #15151b, #0d0d11);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.98);
  animation: modalRise .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes modalRise { to { transform: none; } }
.modal::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: start;
  gap: 24px;
}
.modal-header .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 12px;
}
.modal-header h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05; letter-spacing: -.015em;
  margin: 0;
}
.modal-close {
  appearance: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--accent); color: #f4f4f5; border-color: var(--accent); }

.modal-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.modal-body p {
  margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 15px;
}
.modal-section h4 {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); text-transform: uppercase; letter-spacing: .18em;
  margin: 0 0 12px;
}
.modal-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 560px) { .modal-features { grid-template-columns: 1fr; } }
.modal-features .ft {
  padding: 14px 16px;
  background: var(--bg-1);
  display: flex; align-items: center; gap: 12px;
}
.modal-features .ft .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.modal-features .ft span {
  font-size: 13px; color: var(--ink-2);
}
.modal-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 560px) { .modal-meta { grid-template-columns: 1fr; } }
.modal-meta .m {
  padding: 16px;
  background: var(--bg-1);
}
.modal-meta .m .l {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 6px;
}
.modal-meta .m .v {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px;
}
.modal-meta .m .v .u { color: var(--accent); font-size: .7em; margin-left: 2px; }

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-footer .note {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: .12em;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.pf-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .pf-head { flex-direction: column; align-items: start; } }

.pf-filters {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.pf-filter {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  position: relative;
}
.pf-filter:hover { color: var(--ink); border-color: var(--ink-3); }
.pf-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f4f4f5;
}
.pf-filter .ct {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: .55;
  margin-left: 8px;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 16px;
}
@media (max-width: 980px) { .pf-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 90px; gap: 12px; } }
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
  .pf-grid .pf-card { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
}

.pf-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161620, #0e0e12);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.pf-card.is-hidden { display: none; }
.pf-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.pf-card .pf-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .8s ease;
}
.pf-card .pf-bg {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,.015) 14px 28px);
  transition: transform .8s ease;
}
.pf-card:hover .pf-photo { transform: scale(1.06); }
.pf-card:hover .pf-bg { transform: scale(1.06); }
.pf-card .pf-info {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.pf-card .pf-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; line-height: 1.15; letter-spacing: -.005em;
  color: var(--ink);
}
.pf-card .pf-cat {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em;
  margin-top: 4px;
}
.pf-card .pf-tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .14em;
  border: 1px solid var(--accent);
  padding: 4px 8px;
  white-space: nowrap;
}
.pf-card .pf-corner {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: .14em; z-index: 2;
}
.pf-card .pf-glow {
  position: absolute; inset: -20%;
  z-index: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.pf-card:hover .pf-glow { opacity: .8; }

.pf-more {
  margin-top: 48px;
  display: flex; justify-content: center;
}
