/* Fryk Works — service detail pages (light marketing register) */

/* ── HERO ── */
.service-hero{
  padding:160px 0 112px;
  border-bottom:1px solid var(--border);
}
.service-hero--split{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  min-height:100vh;
  min-height:100dvh;
  padding:0;
  border-bottom:1px solid var(--border);
}
.service-hero--split .service-hero-visual{
  position:relative;
  overflow:hidden;
  background:#e0e0dc;
}
.service-hero--split .service-hero-visual img,
.service-hero--split .service-hero-visual video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.service-hero-panel{
  display:flex;
  align-items:center;
  padding:140px clamp(40px,6vw,104px) 96px;
}
.service-hero-inner{
  width:100%;
  max-width:480px;
}
.service-hero-inner .sec-label{
  display:block;
  margin-bottom:26px;
}
.service-hero-inner .service-h{margin-top:0}
.service-hero-inner > .btn{margin-top:36px}
.service-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:36px;
}
.service-hero-actions .btn{margin-top:0}
.service-h{
  font-size:clamp(34px,4.6vw,56px);
  font-weight:300;
  line-height:1.08;
  letter-spacing:-.028em;
  color:var(--ink);
  margin-top:22px;
  text-wrap:balance;
  max-width:14ch;
}
.service-h--wide{max-width:18ch}
.service-lead{
  margin-top:28px;
  max-width:52ch;
  font-size:16px;
  line-height:1.68;
  font-weight:300;
  color:var(--ink-60);
  text-wrap:pretty;
}
.service-lead--wide{max-width:62ch}

/* ── COVER ── */
.service-cover{
  padding:72px 0 128px;
}
.service-frame{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#e0e0dc;
}
.service-frame--hero{
  aspect-ratio:21/9;
}
.service-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ── STRATEGIC SCOPE (dark) ── */
.svc-scope{
  padding:128px 0;
}
.svc-scope-head{
  max-width:520px;
  margin-bottom:36px;
}
.svc-scope-h{
  font-size:clamp(30px,4.2vw,48px);
  font-weight:300;
  line-height:1.09;
  letter-spacing:-.028em;
  color:var(--white);
  margin-top:22px;
  text-wrap:balance;
}
.svc-scope-intro{
  max-width:62ch;
  font-size:16px;
  line-height:1.68;
  font-weight:300;
  color:var(--white-55);
  margin-bottom:72px;
  text-wrap:pretty;
}
.scope-modules{
  display:flex;
  flex-direction:column;
  gap:96px;
}
.scope-module{
  display:grid;
  grid-template-columns:1.35fr .92fr;
  gap:56px;
  align-items:center;
}
.scope-module--reverse .scope-visual{order:2}
.scope-module--reverse .scope-copy{order:1}
.scope-visual{
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  background:rgba(255,255,255,.06);
}
.scope-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 520ms var(--ease-out);
}
.scope-title{
  font-size:clamp(22px,2.8vw,30px);
  font-weight:400;
  letter-spacing:-.018em;
  line-height:1.2;
  color:var(--white);
  margin-bottom:22px;
  transition:transform var(--motion-dur-hover) var(--ease-spring);
}
.scope-body{
  font-size:15px;
  line-height:1.72;
  font-weight:300;
  color:var(--white-55);
  max-width:48ch;
  text-wrap:pretty;
}

/* ── PROCESS (light) ── */
.svc-process{
  padding:128px 0;
  border-top:1px solid var(--border);
}
.svc-process-head{
  max-width:640px;
  margin-bottom:72px;
}
.svc-process-h{
  font-size:clamp(30px,4.2vw,48px);
  font-weight:300;
  line-height:1.09;
  letter-spacing:-.028em;
  color:var(--ink);
  margin-top:22px;
  text-wrap:balance;
}
.svc-process-intro{
  margin-top:28px;
  font-size:16px;
  line-height:1.68;
  font-weight:300;
  color:var(--ink-60);
  max-width:58ch;
  text-wrap:pretty;
}
.phase-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  border-top:1px solid var(--border);
}
.phase-item{
  display:grid;
  grid-template-columns:minmax(52px,72px) minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  align-items:start;
  padding:clamp(28px,4vw,44px) 0;
  border:none;
  border-bottom:1px solid var(--border);
  background:transparent;
  position:relative;
  transition:
    opacity 280ms var(--ease-out),
    padding-left 320ms var(--ease-spring);
}
.phase-item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:2px;
  background:var(--ink);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform 420ms var(--ease-out);
}
.phase-index{
  font-size:clamp(28px,3.5vw,42px);
  font-weight:300;
  line-height:1;
  letter-spacing:-.04em;
  color:var(--ink-18);
  font-variant-numeric:tabular-nums;
  padding-top:2px;
  transition:
    color 280ms var(--ease-out),
    transform 320ms var(--ease-spring);
}
.phase-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:0;
  min-width:0;
}
.phase-title{
  font-size:clamp(20px,2.4vw,26px);
  font-weight:400;
  letter-spacing:-.015em;
  line-height:1.22;
  color:var(--ink);
  margin:0;
  transition:transform var(--motion-dur-hover) var(--ease-spring);
}
.phase-text{
  font-size:14px;
  line-height:1.68;
  font-weight:300;
  color:var(--ink-60);
  max-width:58ch;
  text-wrap:pretty;
  transition:opacity 280ms var(--ease-out);
}

/* phase focus — accent rail, lift index, soften siblings */
.phase-list:has(.phase-item:hover) .phase-item:not(:hover),
.phase-list:has(.phase-item:focus-within) .phase-item:not(:focus-within){
  opacity:var(--phase-dim);
}
.phase-item.is-active,
.phase-item:hover,
.phase-item:focus-within{
  padding-left:12px;
}
.phase-item.is-active::before,
.phase-item:hover::before,
.phase-item:focus-within::before{
  transform:scaleY(1);
}
.phase-item.is-active .phase-index,
.phase-item:hover .phase-index,
.phase-item:focus-within .phase-index{
  color:var(--ink);
  transform:translateX(2px);
}
.phase-item.is-active .phase-text,
.phase-item:hover .phase-text,
.phase-item:focus-within .phase-text{
  opacity:1;
}
.phase-item:not(.is-active):not(:hover):not(:focus-within) .phase-text{
  opacity:.82;
}

/* ── DELIVERABLES (dark group) ── */
.svc-dark-group{
  border-top:1px solid var(--surface-border);
}
.svc-deliverables{
  padding:128px 0 96px;
}
.svc-deliverables-head{
  max-width:480px;
  margin-bottom:56px;
}
.svc-deliverables-h{
  font-size:clamp(30px,4.2vw,48px);
  font-weight:300;
  line-height:1.09;
  letter-spacing:-.028em;
  color:var(--white);
  margin-top:22px;
  text-wrap:balance;
}
.del-grid{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:32px 28px;
}
.del-grid--three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.del-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  cursor:default;
}
.del-visual{
  position:relative;
  width:100%;
  aspect-ratio:5/4;
  overflow:hidden;
  background:rgba(255,255,255,.06);
}
.del-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(13,13,13,.72) 100%);
  opacity:.85;
  transition:opacity 320ms var(--ease-out);
  pointer-events:none;
}
.del-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 480ms var(--ease-out);
}
.del-name{
  font-size:15px;
  font-weight:400;
  letter-spacing:-.01em;
  line-height:1.3;
  color:var(--white);
  transition:transform var(--motion-dur-hover) var(--ease-spring);
}

/* ── RELATED WORK ── */
.svc-related{
  padding:128px 0;
  border-top:1px solid var(--border);
}
.svc-related-h{
  font-size:clamp(28px,3.6vw,42px);
  font-weight:300;
  line-height:1.1;
  letter-spacing:-.028em;
  color:var(--ink);
  text-wrap:balance;
}
.svc-related .sec-head{
  margin-bottom:56px;
}
.svc-related-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:960px){
  .svc-related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .svc-related-grid{grid-template-columns:1fr}
}
.svc-related-meta{
  font-size:13px;
  line-height:1.58;
  color:var(--ink-60);
  font-weight:300;
}

/* ── CONVERSION GATE ── */
.svc-gate{
  padding:96px 0 128px;
  border-top:1px solid var(--surface-border);
}
.svc-gate-inner{
  max-width:720px;
}
.svc-gate-h{
  font-size:clamp(32px,4.8vw,56px);
  font-weight:300;
  line-height:1.08;
  letter-spacing:-.032em;
  color:var(--white);
  text-wrap:balance;
}
.svc-gate-body{
  margin-top:28px;
  font-size:16px;
  line-height:1.72;
  font-weight:300;
  color:var(--white-55);
  max-width:58ch;
  text-wrap:pretty;
}
.svc-gate-inner .btn{margin-top:36px}
.svc-gate-note{
  margin-top:16px;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--white-38);
}

/* ── VIS COMM PAGE — vertical hero crop ── */
.page-svc-viscomm .service-hero--split .service-hero-visual img,
.page-svc-viscomm .service-hero--split .service-hero-visual video{
  object-position:50% 50%;
}

/* ── UX PAGE — square hero mockup stays centered ── */
.page-svc-ux .service-hero--split .service-hero-visual img{object-position:50% 50%}

/* ── UX PAGE — scope frames match branding (3/4); photos crop into them ── */
.page-svc-ux .scope-visual{aspect-ratio:3/4}
.page-svc-ux .scope-module:nth-child(1) .scope-visual img{object-position:50% 58%}
.page-svc-ux .scope-module--reverse .scope-visual img{object-position:50% 50%}

/* ── BRAND PAGE — visual-dominant overrides ── */
.page-svc-brand .scope-visual{aspect-ratio:3/4}
.page-svc-brand .scope-visual img{
  transition:transform 520ms var(--ease-out), filter 420ms var(--ease-out);
}
.page-svc-brand .del-visual img{
  transition:transform 480ms var(--ease-out), filter 420ms var(--ease-out);
}
.page-svc-brand .service-hero--split .service-hero-visual img{
  transition:transform 900ms var(--ease-spring);
}
@media (prefers-reduced-motion:no-preference){
  .page-svc-brand .service-hero--split .service-hero-visual img{
    animation:svc-hero-zoom 1600ms var(--ease-out) both;
  }
}
@keyframes svc-hero-zoom{
  from{transform:scale(1.05)}
  to{transform:scale(1)}
}

/* ── HOVER (fine pointer) ── */
@media (hover:hover) and (pointer:fine){
  .scope-module:hover .scope-visual img{
    transform:scale(1.06);
    filter:brightness(1.04);
  }
  .scope-module:hover .scope-title{transform:translateY(var(--motion-lift))}
  .phase-item:hover .phase-title{transform:translateY(var(--motion-lift))}
  .del-card:hover .del-visual img{
    transform:scale(1.07);
    filter:brightness(1.06);
  }
  .del-card:hover .del-visual::after{opacity:.55}
  .del-card:hover .del-name{transform:translateY(var(--motion-lift))}
  .page-svc-brand .service-hero--split .service-hero-visual:hover img{transform:scale(1.03)}
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion:reduce){
  .page-svc-brand .service-hero--split .service-hero-visual img{
    animation:none;
  }
  .phase-list:has(.phase-item:hover) .phase-item:not(:hover),
  .phase-list:has(.phase-item:focus-within) .phase-item:not(:focus-within){
    opacity:1;
  }
  .phase-item.is-active,
  .phase-item:hover,
  .phase-item:focus-within{
    padding-left:0;
  }
  .phase-item::before{display:none}
  .scope-visual img,
  .del-visual img,
  .scope-title,
  .phase-title,
  .del-name,
  .phase-index{
    transition:none;
  }
}

/* ── RESPONSIVE ── */
@media(max-width:960px){
  .service-hero--split{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:var(--nav-h);
  }
  .service-hero--split .service-hero-visual{
    height:46vh;
    min-height:300px;
  }
  .service-hero--split .service-hero-visual img,
  .service-hero--split .service-hero-visual video{object-position:50% 50%}
  .service-hero-panel{
    padding:64px var(--gutter) 96px;
  }
  .del-grid--three{grid-template-columns:1fr}
  .scope-module,
  .scope-module--reverse{
    grid-template-columns:1fr;
    gap:32px;
  }
  .scope-module--reverse .scope-visual,
  .scope-module--reverse .scope-copy{order:unset}
  .page-svc-brand .scope-visual,
  .page-svc-ux .scope-visual{aspect-ratio:16/10}
  .service-frame--hero{aspect-ratio:16/10}
}
@media(max-width:640px){
  .service-hero:not(.service-hero--split){padding:132px 0 88px}
  .service-hero--split{padding:var(--nav-h) 0 0}
  .service-hero-panel{padding:56px var(--gutter) 80px}
  .service-cover{padding:52px 0 96px}
  .svc-scope,
  .svc-process{padding:88px 0}
  .svc-deliverables{padding:88px 0 72px}
  .svc-gate{padding:72px 0 96px}
  .scope-modules{gap:72px}
  .del-grid{gap:24px}
}
